$ERR.REX: Difference between revisions

25 bytes removed ,  9 months ago
no edit summary
m (added whitespace, split a compound statement.)
No edit summary
 
Line 1:
The &nbsp; '''<code>$ERR.REX''' &nbsp;</code> (REXX) program is used to issue various formatted error messages from other REXX programs.
 
<br><br>The &nbsp; '''<code>$ERR.REX''' &nbsp;</code> program makes use of the &nbsp; '''<code>$T.REX''' &nbsp;</code> program to issue the error messages in red (if available).
<br><br>The help for the &nbsp; '''$ERR''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[$ERR.HEL]].
 
<lang rexx>/*REXX program to display error or informational messages (in color, if supported). */
<br><br>The help for the &nbsp; '''<code>$ERR''' &nbsp;</code> REXX program is included here &nbsp; ──► &nbsp; [[$ERR.HEL]].
<syntaxhighlight lang="rexx">
<lang rexx>/*REXX program to display error or informational messages (in color, if supported). */
 
trace off /*turn off all REXX cmd error messages.*/
Line 494 ⟶ 497:
syitb: if left(sysy,1)==' ' then sysy=substr(sysy,2); call syit sysy; return
syline: if a5\==0 then call sy 'on line' a5 "of" ufid; _sl=g7; call syfunc; if _sl\=='' then do; call sy; call sy "REXX sourceline is:"; call sy; call sy _sl; call sy; end; if !cms then do;'EXECSTAT' a2 a3;if rc==0 then "EXECDROP" a2 a3;end;return
syntax: !sigl=sigl; call er 13,!fid(2) !fid(3) !sigl !cal() condition('D') sourceline(!sigl)</lang>
</syntaxhighlight>
 
[[Category:REXX library routines]]