I have an OFFICIAL reply from IBM on this question. The MANUAL (Migration Guide) was in error, the compiler has it right.
*-----------------------From IBM:
We meant the text to read like this:
PERFORM statement-second UNTIL
OS/VS COBOL allowed a second UNTIL in a PERFORM statement, as in the following example:
PERFORM CHECK-FOR-MATCH THRU CHECK-FOR-MATCH-EXIT
UNTIL PARM-COUNT = 7
OR UNTIL SSREJADV-EOF.
IBM COBOL does not allow a second UNTIL statement. The above statement must be changed to:
PERFORM CHECK-FOR-MATCH THRU CHECK-FOR-MATCH-EXIT
UNTIL PARM-COUNT = 7
OR SSREJADV-EOF.
*-------------
The new compiler will not accept multiple UNTIL statements, but it WILL accept multiple conditions. The Migration Guide will be fixed in the next edition.
Stephen J Spiro
Member, J4 COBOL Standards Committee
check it out at
stephenjspiro at hotmail.com