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
 

 

Unable to display Message using SETMSG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Unable to display Message using SETMSG
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: 662
Location: Pennsylvania

PostPosted: Thu Nov 25, 2010 1:39 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Nov 25, 2010 1:48 am    Post subject: Reply to: Unable to display Message using SETMSG
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    Post subject: Reply to: Unable to display Message using SETMSG
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    Post subject:
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: 662
Location: Pennsylvania

PostPosted: Thu Nov 25, 2010 2:38 am    Post subject:
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    Post subject:
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: 662
Location: Pennsylvania

PostPosted: Thu Nov 25, 2010 2:46 am    Post subject:
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    Post subject:
Reply with quote

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Nov 25, 2010 11:43 am    Post subject:
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    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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm


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