View previous topic :: View next topic
|
Author |
Message |
bhavin.mehta
New User
Joined: 25 Jun 2012 Posts: 34 Location: India
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
bhavin.mehta
New User
Joined: 25 Jun 2012 Posts: 34 Location: India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I usually use the MSG and the MSGLOC parameters on the DISPLAY statement. |
|
Back to top |
|
|
bhavin.mehta
New User
Joined: 25 Jun 2012 Posts: 34 Location: India
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
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 |
|
|
bhavin.mehta
New User
Joined: 25 Jun 2012 Posts: 34 Location: India
|
|
|
|
@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 |
|
|
|