$ERR.HEL: Difference between revisions

Move to REXX library routines category
(added this page which is HELp for the $ERR.REX (REXX) program. -- ~~~~)
 
(Move to REXX library routines category)
 
(3 intermediate revisions by one other user not shown)
Line 1:
This   '''$ERR.HEL'''   page is the contents of the (help) information displayed when the   '''$ERR.REX'''   (REXX) program
<br>invokes the &nbsp; '''$H.REX''' &nbsp; program to display the &nbsp; '''help''' &nbsp; documentation for the &nbsp; '''$ERR.REX''' &nbsp; program.
 
<pre>
The $ERR command is used to display an error message (or messages) from a
Line 15 ⟶ 18:
The format of the $ERR command is:
 
╔═════════════════════════════════════════════════════════════════════════════╗
╔══════════════════════════════════════════════════════════════════════════════╗
║ $ERR errnumerrNum EXECname {xxx yyy zzz} {..F=fff}
║ ,
║ ?
║ ?AUTHOR
║ ?FLOW
║ ?SAMPLES
╚═════════════════════════════════════════════════════════════════════════════╝
╚══════════════════════════════════════════════════════════════════════════════╝
 
───where:
 
? shows this help file (press ESC to quit when viewing).
 
?AUTHOR shows the author of this program.
Line 34 ⟶ 37:
?FLOW shows the external execution flow of this program.
 
?SAMPLES shows some sample uses (press ESC to quit when viewing).
 
errnumerrNum is the number of the error message(s) (numbered from 1400──►1499),
or 14.1 (which indicates that the REXX program has been HALTed).
 
0 exits $ERR.
'
EXECname is the name of the invoking EXEC, and if not a comma, it's shown in
in the last error message (see above).
 
xxx yyy zzz are optional arguments that the error message text(s) may require.
Line 51 ⟶ 54:
 
 
The return code is set to the last two digits of the errnumerrNum, except for error
1468, which uses the retcodereturn code (error code) from the 3rd argmentargument which is an
is an code code recievedreceived from another command that failed.
 
Another special case is error 14.1 which signifies that the REXX program has
Line 60 ⟶ 63:
Ω
</pre>
 
[[Category:REXX library routines]]
10,333

edits