Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in "setmsg MSG"

Status
Not open for further replies.

rajesh082

Programmer
Dec 18, 2007
38
DK
I have been trying to use "setmsg MSG(ISPZ000)" in my Rexx.
Can anybody tell me where Can I read about this service? Also is it possible to Display 2 different lines of Messages in this Pop up box. If yes How to do it?

I want it to look like this?:-

______________________________
| |
| Your choice is Invalid. |
| Please select a valid Option.|
|______________________________|

Any pointers would be helpful.
 
TYry this.

/********************REXX***********************/
ZEDSMSG = ''
ZEDLMSG = left('Your choice is invalid',78),
'Please select a valid Option'
ADDRESS ISPEXEC "SETMSG MSG(ISRZ001)"
Return

 
Hi RxUsr,

Thanks this is working.

Please correct me if I understood wrong! The 78 here stands for the total length of string so that the actual length of the string is padded with blanks afterwards. Does that mean that the total length of a message in SetMSG can not be greater than 78. Also, How many such different lines can we use in this function.

It would really help me, if you could point me to some source where I coud read more about Setmsg, because I do want to learn it, rather than just implementing it.
 
Here's the rule:

If SMSG is specified and there is a SETMSG, that's the text you see in the upper right of the screen. To see any LMSG the user must press the key for HELP while the SMSG is displayed.

If SMSG is not specified, LMSG (however long it happens to be) is displayed in a box immediately.

I prefer not to pad segments of a message as RxUsr did. I would have coded it as
Code:
ZEDLMSG = "Your choice is invalid. ",
          "Please select a valid option from among ",
           valid_opts"."
thus providing the user with a clue as to what is expected.


Frank Clarke
Support the Troops:
-- Bring them home.
 
I have "Long message in pop-up" set on in my ISPF settings, option 0.
By setting each line length to 78, I get each string of text on a new line in my pop-up box.
 
I didn't say it was wrong; I just prefer not to do it. When I set up a long message, it can be very long. If it's a selection panel and the user has made several errors on different lines, I'll collect them all and package them into a verrrrry long message. If I put each phrase on a separate line, the pop-up would have to be scrollable ;-)


Frank Clarke
Support the Troops:
-- Bring them home.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top