Flow-control structures: Difference between revisions

m
→‎{{header|COBOL}}: Added section on GOBACK
m (Added section on EXIT in COBOL section)
m (→‎{{header|COBOL}}: Added section on GOBACK)
Line 297:
* PROGRAM: If used in a called function, execution of it is stopped and control returned to the calling program. If it is used in the main program, the statement is non-functional and ignored.
The PERFORM/PERFORM CYCLE clauses can only be used inside of an inline PERFORM statement.
 
=== GOBACK ===
If used in a called function, control will transferred back to the calling program. If it is used in the main program, the program will be terminated.
 
=== GO TO ===
Anonymous user