Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
29
Task/Program-termination/REXX/program-termination-1.rexx
Normal file
29
Task/Program-termination/REXX/program-termination-1.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" doesn't need parentheses*/
|
||||
/*"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 parentheses.] */
|
||||
|
||||
|
||||
/*─────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. */
|
||||
6
Task/Program-termination/REXX/program-termination-2.rexx
Normal file
6
Task/Program-termination/REXX/program-termination-2.rexx
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Parse Version v
|
||||
Say v
|
||||
Call sub
|
||||
Say 'Back from sub'
|
||||
Exit
|
||||
sub:
|
||||
Loading…
Add table
Add a link
Reference in a new issue