On Mon, 16 Apr 2012 07:28:10 -0500, McKown, John wrote:
>Our use of GO TO is generally restricted to usage such as:
>
> PERFORM I-P THRU I-P-EXIT UNTIL CONDITION.
>
>I-P.
> READ FILE AT END
> SET CONDITION TO TRUE
> GO TO I-P-EXIT
> END-READ
>...
>I-P-EXIT.
> EXIT.
>
>Otherwise, to avoid the GO TO, ...
>
I don't know COBOL. However any properly designed
language should allow incorporating such a test in the
loop control expression:
while read( ... ); do
...
done
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN