View previous topic :: View next topic
|
Author |
Message |
alexma
New User
Joined: 26 Feb 2009 Posts: 8 Location: Brazil
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
alexma
New User
Joined: 26 Feb 2009 Posts: 8 Location: Brazil
|
|
|
|
Thanks one more time Pedro. It's working fine now ..
Best regards.
Alex |
|
Back to top |
|
|
|