Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SETMSG variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: SETMSG variable
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

Senior Member


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

PostPosted: Tue Jul 28, 2009 10:16 pm    Post subject: Reply to: SETMSG variable
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    Post subject: Reply to: SETMSG variable
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
No new posts OPC JCL Variable passion_sujesh IBM Tools 5 Fri Jul 01, 2016 4:21 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us