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
 

 

How to display Message from ISPMLIB?

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

New User


Joined: 25 Jun 2012
Posts: 32
Location: India

PostPosted: Thu Nov 14, 2013 2:56 pm    Post subject: How to display Message from ISPMLIB?
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: 1715
Location: UK

PostPosted: Thu Nov 14, 2013 3:00 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 14, 2013 3:15 pm    Post subject:
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: 32
Location: India

PostPosted: Thu Nov 14, 2013 4:02 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 14, 2013 4:10 pm    Post subject:
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: 32
Location: India

PostPosted: Thu Nov 14, 2013 6:00 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Nov 15, 2013 6:11 am    Post subject: Reply to: How to display Message from ISPMLIB?
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: 32
Location: India

PostPosted: Fri Nov 15, 2013 1:35 pm    Post subject:
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    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 How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
This topic is locked: you cannot edit posts or make replies. DSList (3.4) cannot display Chinese c... jacobdng TSO/ISPF 4 Wed Oct 05, 2016 2:51 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Truncated error message after VERIFY ... David Sde TSO/ISPF 4 Mon Sep 05, 2016 11:26 pm
This topic is locked: you cannot edit posts or make replies. Get and display content of an address... lind sh CICS 1 Mon Aug 08, 2016 9:18 am


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