View previous topic :: View next topic
|
Author |
Message |
spanda
New User
Joined: 31 Aug 2005 Posts: 48 Location: U.K.
|
|
|
|
Hi all,
I have a piece of rexx code that calls an assembler program to do someting. The assembler program validates the inputs and issues WTO (Write To Operator) messages for invalid input or in case of errors.
Is there any way to trap these WTO messages? If I could trap these messages, then I could handle the conditions better. Has anybody ever tried this?
Any help will be appreciated.
Thanks,
Panda. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Hi -
Unfortunately, there is no way to trap TPUT and WTO messages in pure REXX (see the OUTTRAP documentation).
However, you can try and read the SDSF LOG and parse the message associated with the JOBID - using batch SDSF command.
Let me know if you need an example of how to read SDSF dataset in batch (you can do that in foreground, too), or just read the fine section in the SDSF book.
O. |
|
Back to top |
|
|
|