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: 1845
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: 2068
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 Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 1 Wed Aug 16, 2017 6:03 pm
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm


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