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

How to display Message from ISPMLIB?


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

New User


Joined: 25 Jun 2012
Posts: 34
Location: India

PostPosted: Thu Nov 14, 2013 2:56 pm
Reply with quote

Hi, I'm using REXX to display a panel and what to popup messages from the ISPMLIB. I have set up the Lib but I'm finding it difficult to popup the message.
Can you tell me what all Keywords I need to to use in the Panel, the Rexx and the ISPMLIB member?
Also, if any process to be followed to for naming the Member and Message ID?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Nov 14, 2013 3:00 pm
Reply with quote

ISPF is very strict about the naming standards for messages so you need to read the Dialogue Developer's Guide manual - carefully.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 14, 2013 3:15 pm
Reply with quote

What do you mean by "finding it difficult".

Are you getting errors - if so - it may be a bit of an idea to let us know what errors you are getting.

Psychic day was yesterday unfortunately. So unless you actually tell us what the problems are how can you expect us to be of any help.
Back to top
View user's profile Send private message
bhavin.mehta

New User


Joined: 25 Jun 2012
Posts: 34
Location: India

PostPosted: Thu Nov 14, 2013 4:02 pm
Reply with quote

Earlier I used extra byte in the Message ID and thus the message was not displayed. I corrected it and tested it successfully using "Dialog Test" option.

Now when I put the logic in Rexx, the message is not getting displayed!!! Belos is the code

Code:

IF OPT = 1 OR OPT = 2 THEN
   NOP
ELSE
    ADDRESS ISPEXEC "SETMSG MSG(MSG010)"
    ADDRESS ISPEXEC "DISPLAY PANEL(CMNLIST)"
    RETURN
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 14, 2013 4:10 pm
Reply with quote

I usually use the MSG and the MSGLOC parameters on the DISPLAY statement.
Back to top
View user's profile Send private message
bhavin.mehta

New User


Joined: 25 Jun 2012
Posts: 34
Location: India

PostPosted: Thu Nov 14, 2013 6:00 pm
Reply with quote

It worked

Code:

IF OPT = 1 || OPT = 2 THEN
   NOP
ELSE
    DO
    ADDRESS ISPEXEC "DISPLAY MSG(MSG010) MSGLOC(PDSNAME)"
    CONTINUE='YES'
    RETURN
    END


Thanks @expat
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri Nov 15, 2013 6:11 am
Reply with quote

The SETMSG should have worked.

I noticed in your failing case you do not have DO / END group but in the working case, you use DO and END. Could that be the source of the problem? Do you at times skip the SETMSG?
Back to top
View user's profile Send private message
bhavin.mehta

New User


Joined: 25 Jun 2012
Posts: 34
Location: India

PostPosted: Fri Nov 15, 2013 1:35 pm
Reply with quote

@Perdo:
Agree, I had an incorrect logic. Even 'OR' shud have been written as "|" in the earlier case. So could be the case that the code was not been executed. And after the suggestions from expat I found MSG to be a better option and thus used it with the correct Logic.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts dsnrexx fails without error message CLIST & REXX 9
No new posts How to display the leading zeros of a... DB2 7
No new posts Print out all lines with 'IBM' compil... CLIST & REXX 8
Search our Forums:

Back to Top