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

SETMSG variable


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
alexma

New User


Joined: 26 Feb 2009
Posts: 8
Location: Brazil

PostPosted: Tue Jul 28, 2009 6:37 pm
Reply with quote

I'm developing a REXX program and I'm using SETMSG ispf command to display messages. I created a data set with messages table and I'd like to know if is possible update a value of this table using SETMSG command. For example:

I'm connecting to MQ Queue Manager and I received 2059 reason code. I have the following message on the message table:

WMQTE001 .ALARM=YES
'WMQT001E: Connection error. Reason Code: &rcode'

Is it possible set "&rcode" variable by 2059?

I'll appreciate any help.

Best Regards,
Alex
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jul 28, 2009 10:16 pm
Reply with quote

REXX and ISPF work well together.

In rexx:
Code:
rcode = 2059
Address ISPEXEC 'SETMSG MSG(WMQTE001)'


Note: in your example, the message number is different than what the message displays.

Also, the user can choose to set MSGID ON to or MSGID OFF to get the message ids shown or not.
Back to top
View user's profile Send private message
alexma

New User


Joined: 26 Feb 2009
Posts: 8
Location: Brazil

PostPosted: Thu Aug 06, 2009 7:25 am
Reply with quote

Thanks one more time Pedro. It's working fine now ..


Best regards.
Alex
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top