TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: David Noon
from: Ruud Senden
date: 1996-01-09 21:14:34
subject: REXX errors

David Noon wrote on 07 Jan 1996 at 12:10 to Ruud Senden:

RS> Well, the RC-variable is at least meaningfull with a syntax 
RS> error.

 DN> What you are seeing here is REXX passing something it doesn't
 DN> understand to the command shell, CMD.EXE. If REXX can recognise it
 DN> but finds a syntax error, RC will not be valid.

Well, I have a document here which shows the standard handler for SIGNAL ON
SYNTAX, and it also uses the RC-variable to generate an error-message.
Also, in the appendix with errornumbers and -messages, it says "The
number can be found in the special variable RC after a recoverable
error".

I think it is an official REXXSAA-document (I am missing the titlepage, so
I don't know for sure) from an old version of REXX (which was available as
an IBM Internal Use Only package), since it describes all REXXSAA-features,
together with the installation instructions (for OS/2 1.0 and 1.1),
differences between REXXSAA and REXX370 and between REXXSAA and REXXOS2 (I
think this is an even older version of REXX).

I think many things have changed from then, but the standard SYNTAX-signal
handler listed in this document has always worked correctly in my programs,
so I think this is still correct. But the error-message isn't the same as
the current standard signal handler, for example it doesn't show the nested
procedure-calls.

 DN> These are documented somewhere (Red Books perhaps?), but coding the
 DN> REXX error message table into your program will make it rather
 DN> bloated. 

Well, I just decided not to recreate the REXX error-message, since it is so
difficult (if not impossible). I will just print the most important
information, generated with CONDITION(), SIGL and RC.

Anyway, thank you for your answers.

Regards,
  Ruud  (Internet: rsenden{at}cs.ruu.nl) 

--- timEd/2 1.10+
* Origin: The OS/2 based RS point system (2:280/804.2054)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 280/804 801 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.