Author: Bill Woodger
Subject: Reply to: sort with previous record
Posted: Thu Oct 06, 2016 11:48 pm (GMT 5.5)
When you have an IFTHEN which simply negates the condition of the single IFTHEN before it, use WHEN=NONE, like an ELSE in COBOL.
Similarly, if you have more than one condition, and without HIT=NEXT, you have a COBOL EVALUATE structure, and WHEN=NONE is the equivalent of OTHER.
Subject: Reply to: sort with previous record
Posted: Thu Oct 06, 2016 11:48 pm (GMT 5.5)
When you have an IFTHEN which simply negates the condition of the single IFTHEN before it, use WHEN=NONE, like an ELSE in COBOL.
Similarly, if you have more than one condition, and without HIT=NEXT, you have a COBOL EVALUATE structure, and WHEN=NONE is the equivalent of OTHER.