Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: VALIDATE NULL VALUE IN DB2 CASE STATEMENT

$
0
0
Author: useit
Subject: Reply to: VALIDATE NULL VALUE IN DB2 CASE STATEMENT
Posted: Thu Feb 09, 2017 7:38 pm (GMT 5.5)

no arun,

i have a Terminte indicator Y or N Which would help me to fetch only active accounts and active and terminated accounts both.

so if the Term-ind = Y. I Should fetch only active accounts. (i, e Terminate_date is null). And if the term-ind = 'N' i should fetch both active and non active accounts(I, e Term_dt is null and term_dt is not Null).

where terminate_dt =
case :host-term-ind = 'y'
then null
else null not nul both

end

something like above.

thanks,
useit


Viewing all articles
Browse latest Browse all 8500