tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
29
Task/Program-termination/REXX/program-termination.rexx
Normal file
29
Task/Program-termination/REXX/program-termination.rexx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/*REXX program showing five ways to perform a REXX program termination. */
|
||||
|
||||
/*─────1st way────────────────────────────────────────────────────────*/
|
||||
exit
|
||||
|
||||
|
||||
/*─────2nd way────────────────────────────────────────────────────────*/
|
||||
exit (expression) /*Note: the "expression" doen't need parenthesis*/
|
||||
/*"expression" is any REXX expression. */
|
||||
|
||||
|
||||
/*─────3rd way────────────────────────────────────────────────────────*/
|
||||
return /*which returns to this program's invoker. If */
|
||||
/*this is the main body (and not a subroutine), */
|
||||
/*the REXX interpreter terminates the program. */
|
||||
|
||||
|
||||
/*─────4th way────────────────────────────────────────────────────────*/
|
||||
return (expression) /* [See the note above concerning parenthesis.] */
|
||||
|
||||
|
||||
/*─────5th way────────────────────────────────────────────────────────*/
|
||||
/*control*/
|
||||
/* │ */ /*if there is no EXIT and program control "falls */
|
||||
/* │ */ /*through" to the "bottom" (end) of the program, */
|
||||
/* │ */ /*an EXIT is simulated and the program is */
|
||||
/* │ */ /*terminated. */
|
||||
/* ↓ */
|
||||
/* e-o-f */ /* e-o-f = end-of-file. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue