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

Unable to display Message using SETMSG


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

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 12:02 am
Reply with quote

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

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Thu Nov 25, 2010 1:39 am
Reply with quote

Please show the Member Name and the message in question
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Thu Nov 25, 2010 1:48 am
Reply with quote

looks like You did not care to check ALL the return codes from the ISPF services invoked !
Back to top
View user's profile Send private message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 2:33 am
Reply with quote

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

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 2:35 am
Reply with quote

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

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Thu Nov 25, 2010 2:38 am
Reply with quote

Try renaming the member to MSG00.

That is they way many of our msg libraries are setup.
Back to top
View user's profile Send private message
karthik.ilangovan

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 2:43 am
Reply with quote

Dave - THANKS !!! That worked !!! Thanks again.. So, Why is this set up this way - Not sure...
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Thu Nov 25, 2010 2:46 am
Reply with quote

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

New User


Joined: 05 Dec 2006
Posts: 27
Location: India

PostPosted: Thu Nov 25, 2010 2:48 am
Reply with quote

Thanks Dave !
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Nov 25, 2010 11:43 am
Reply with quote

You can find the explanation to the solution in the fine manual.

O.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Design for Message Trapping and WTO N... All Other Mainframe Topics 2
No new posts Message Security Assist extension 7 a... PL/I & Assembler 2
No new posts Unable to interpret a hex value to De... COBOL Programming 7
No new posts omegamon for cics -UNSUPPORTED ENVIRO... CICS 2
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
Search our Forums:


Back to Top