I found a better solution for the case when there are multiple fields to default.
IFTHEN is not good in this scenario because it can only handle one match per record and if there are multiple fields missing in the input you have to cover every possible combination with complicated IFTHEN statements.
After a quick ssearch through the manual I found the CHANGE statement which suits my purpose perfectly
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
if there are multiple fields missing in the input you have to cover every possible combination with complicated IFTHEN statements.
Well, I'm not sure what you mean by that exactly, but I suspect you could use HIT=NEXT to avoid complicated IFTHEN statements. HIT=NEXT continues to the next IFTHEN clause even if the current one is satisfied, so it let's you deal with multiple unrelated fields using simple IFTHEN clauses.