View previous topic :: View next topic
|
Author |
Message |
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
I have the below REXX Code :
/*REXX TROWMSG: THROW SAMPLE MESSAGE FROMISPMLIB LIBRARY */
TRACE ?R
DS_PREFIX = "T0920KE.PDS.REXX"
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
"ISPEXEC LIBDEF ISPMLIB DATASET",
"ID('"DS_PREFIX".MSG')"
ADDRESS ISPEXEC 'SETMSG MSG(MSG001A)' /* DISPLAY ERROR MESSAGE */
All i want to do is display a message MSG001A which is present in another Library that i have tried to concatenate to ISPMLIB. But I am getting following Error and Message is not displayed..
8 *-* ADDRESS ISPEXEC 'SETMSG MSG(MSG001A)'
>>> "SETMSG MSG(MSG001A)"
+++ RC(12) +++
Please help me solve this...
Advance Thanks..
[/img][/url][/quote] |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
Please show the Member Name and the message in question |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
looks like You did not care to check ALL the return codes from the ISPF services invoked ! |
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Hi Enrico,
I searched but Invain. Could you help me to find what is wrong with the Code.
Return Code 12 says - ISPF SETMSG has failed. Panel message has not been found or the syntax is invalid. Return code = 12. |
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Here's the Member and the Message inside it...
BROWSE T0920KE.PDS.REXX.MSG(MSG001) - 01.03
Command ===>
********************************* Top of Data ***
MSG001A 'PROJDEF error ' .TYPE=NOTIFY
'HELLO, HOW ARE YOU ' + |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
Try renaming the member to MSG00.
That is they way many of our msg libraries are setup. |
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Dave - THANKS !!! That worked !!! Thanks again.. So, Why is this set up this way - Not sure... |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
This way you can put many messages in a single member.
MSG001,A,B,C
MSG002,A,B,C
and so on |
|
Back to top |
|
|
karthik.ilangovan
New User
Joined: 05 Dec 2006 Posts: 27 Location: India
|
|
|
|
Thanks Dave ! |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can find the explanation to the solution in the fine manual.
O. |
|
Back to top |
|
|
|