TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Ruud Senden
date: 1996-01-02 18:24:48
subject: REXX errors

Hello All,

I am writing a REXX-program which has to install signal-handlers because
some cleaning-up has to be done before the program finishes. However, after
this cleaning-up is done, I would like to print the REXX error-message
which would be generated if no signal-handlers were installed.

Does anybody know how to do this? Is there a single command for this, or do
I have to create this error-message myself, by using the CONDITION-function
and the RC and SIGL-variables (together with errortext and
sourceline-functions)?

If there is a single command for this, is it possible then to also write
the error-message to a logfile?

If I have to create the error-message myself, does anybody have some
sample-code for this? It should work for every possible signal (ERROR,
FAILURE, HALT, NOVALUE, NOTREADY and SYNTAX), and also if the
error-procedure is called directly using a 'signal error_procedure'.

I think I could figure it out myself for the biggest part (although not
totally I think), but it would be much easier if somebody already has some
sample code. Then I won't have to figure out how every possible
error-message is built up, and I don't have to figure out how to recreate
them.

I hope somebody has a solution for this, thanks in advance.

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: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515
SEEN-BY: 712/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™.