Author: Bill Woodger
Subject: Reply to: COBOL Version 6.1
Posted: Wed Mar 08, 2017 4:47 pm (GMT 5.5)
They are all GO TOs, wrapped up in fanciness, with no named target.
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.
Subject: Reply to: COBOL Version 6.1
Posted: Wed Mar 08, 2017 4:47 pm (GMT 5.5)
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.