Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with nullif clause in ctl file

Status
Not open for further replies.

ddiamond

Programmer
Apr 22, 2005
918
US
I have the following code:
Code:
EXPIRATION_DATE POSITION(205:212) DATE "YYYYMMDD" NULLIF EXPIRATION_DATE   = "        ",
I also want expiration_date to be null if the field bound<>'B', but I can't figure out how to include 2 nullif conditions. The following work-around seems to work, but I'd like to find something cleaner.
Code:
EXPIRATION_DATE POSITION(205:212) DATE "YYYYMMDD" NULLIF
EXPIRATION_DATE = "        " "DECODE(:BOUND,'B',:EXPIRATION_DATE)",
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top