IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Trapping WTO messages


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
spanda

New User


Joined: 31 Aug 2005
Posts: 48
Location: U.K.

PostPosted: Thu Dec 08, 2005 10:39 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Dec 27, 2005 12:56 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts REXX GETMSG does not return £HASP880... CLIST & REXX 2
No new posts Read 4MB message and split into multi... COBOL Programming 9
No new posts Suppress messages from being written ... All Other Mainframe Topics 6
No new posts Web Service VS MQ Messages All Other Mainframe Topics 1
No new posts ims program to put and get MQ messages COBOL Programming 1
Search our Forums:

Back to Top