Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

COBOL Programming :: RE: COBOL Version 6.1

$
0
0
Author: Gnanas N
Subject: Re: Reply to: COBOL Version 6.1
Posted: Wed Mar 08, 2017 7:18 pm (GMT 5.5)

Bill Woodger wrote:
They are all GO TOs, wrapped up in fanciness, with no named target.

Code:

PERFORM PROGA THRU PROGC-EXIT

PROGA.
....
Somecondition
    EXIT PARAGRAPH
PROGB.
....
PROGC.
...
PROGC-EXIT.
    EXIT.


Where does EXIT PARAGRAPH go to?

Think about what someone may expect it to do, then look at the 6.1 Language Reference and see what actually happens.

I just ran a test with the above. EXIT PARAGRAPH passed the control to the first statement in PROGB paragraph.
_________________
Cheers,
Gnanas N.


Viewing all articles
Browse latest Browse all 8500

Trending Articles