Rich kids are into COBOL
Chuck Guzis
cclist at sydex.com
Wed Feb 18 10:50:44 CST 2015
Is there any other language (save PL/I for obvious reasons) that has an
equivalent to the COBOL PERFORM...THRU statement?
That one always struck me as being a bit offbeat. Example: Consider a
section of a program with 4 consecutive paragraphs, named PARA-1 through
PARA-4. One can say in the same program:
PERFORM PARA-1 23 TIMES.
PERFORM PARA-1 THRU PARA-4.
PERFORM PARA-1 THRU PARA-2.
PERFORM PARA-2 THRU PARA-3 WITH TEST AFTER VARYING INDEX-1 FROM 10 BY 3
UNTIL FLAG-1 > 0.
It's that variable scope of a PERFORM that I don't recall seeing in any
other language.
--CHuck
More information about the cctalk
mailing list