$ERR.REX: Difference between revisions

add HELP (doc) and others links, added whitespace. -- ~~~~
(added this program, it is a general purpose program to display specific error messages. -- ~~~~)
 
(add HELP (doc) and others links, added whitespace. -- ~~~~)
Line 1:
The   '''$ERR.REX'''   (REXX) program is used to issue various formatted error messages from other REXX programs.
<br><br>The &nbsp; '''$ERR.REX''' &nbsp; program makes use of the &nbsp; '''$T.REX''' &nbsp; program to issue the error messages in red (if available).
<br><br>The help for the &nbsp; '''$ERR''' &nbsp; REXX program is included here ──► [[$ERR.HEL]].
<lang rexx>/**/trace o; parse arg !; if !all(arg()) then exit
if !cms then address ''
signal on halt; signal on novalue; signal on syntax
numeric digits 100
 
Line 13 ⟶ 16:
@cmstype = 'SET CMSTYPE' /*point to SET CMSTYPE cmd*/
 
if !cms | !dos then @ = '────────'
else @ = '--------'
 
parse var !! !! ' ..F=' ftops