Flow-control structures: Difference between revisions
Content added Content deleted
m (Added section on EXIT in COBOL section) |
m (→{{header|COBOL}}: Added section on GOBACK) |
||
Line 297: | 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. |
* 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. |
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 === |
=== GO TO === |