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

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

$
0
0
Author: Arun Raj
Posted: Thu Feb 09, 2017 8:33 pm (GMT 5.5)

I was assuming the 'terminate indicator' to be a table column name based on your initial post. But from your recent post above, looks like the indicator is just an input variable and you are trying to adjust your WHERE clause on TERMINATE_DT to select only NULL if the input indicator is 'Y', and to ignore that filtering if the indicator is 'N' (or does not equal 'Y').

If that is the case, would changing the IND in my previous response to your indicator host variable, help?
_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard


Viewing all articles
Browse latest Browse all 9405

Trending Articles