MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Turning on Long Message in Pop-up

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
flatearther
Beginner


Joined: 19 Apr 2007
Posts: 13
Topics: 2
Location: Bethesda, MD

PostPosted: Tue Jan 15, 2008 12:07 pm    Post subject: Turning on Long Message in Pop-up Reply with quote

Hi,

Does anyone know if it's possible to turn on the Long Message in Pop-up from a rexx exec? (rather than manually doing it from Settings).
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Wed Jan 16, 2008 1:58 am    Post subject: Reply with quote

Like this?
lmsg = "Der Fahrplan System wird",
"von "spuser" in "spmach" ver
Back to top
View user's profile Send private message Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Jan 16, 2008 9:25 am    Post subject: Reply with quote

You want to modify a user's options from within your REXX routine to ensure "Long message in pop-up" is selected?
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
flatearther
Beginner


Joined: 19 Apr 2007
Posts: 13
Topics: 2
Location: Bethesda, MD

PostPosted: Wed Jan 16, 2008 9:52 am    Post subject: Reply with quote

Yes that's right. I have a bunch of rexx screens that produce messages designed to be read in pop-ups. Unfortunately the default "Long Message in pop-up" setting is "Off". I'd like to set it "under the covers".

I thought I'd solved it with the below statement. But it gives me a return code of 20.

Address ISPEXEC "ISPFVAR LMSG(ON)"
Back to top
View user's profile Send private message
flatearther
Beginner


Joined: 19 Apr 2007
Posts: 13
Topics: 2
Location: Bethesda, MD

PostPosted: Wed Jan 16, 2008 9:57 am    Post subject: Reply with quote

Warp55,

Yes that's pretty much how I use the long message pop-up. But it won't actually display as a popup unless you have the "Long Message in pop-up" setting (in your Settings screen - Option 0) to "On".
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Jan 16, 2008 11:37 am    Post subject: Reply with quote

Check out option .WINDOW=NORESP in the message definition to force it into a pop-up even if the user setting is not enabled.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
flatearther
Beginner


Joined: 19 Apr 2007
Posts: 13
Topics: 2
Location: Bethesda, MD

PostPosted: Wed Jan 16, 2008 12:11 pm    Post subject: Reply with quote

Bill, thanks.

I'm not familar with message definitions.

I code messages as follows (example):

zedLmsg = "Screen Display Error. Rc "Rc
Address ISPEXEC "SETMSG MSG(ISRZ001)"

Would I need to track down the message definition for ISRZ001 and add the .WINDOW=NORESP option?

Thanks,
Scott.
Back to top
View user's profile Send private message
flatearther
Beginner


Joined: 19 Apr 2007
Posts: 13
Topics: 2
Location: Bethesda, MD

PostPosted: Wed Jan 16, 2008 12:40 pm    Post subject: Reply with quote

Success!

You can use the ISPFVAR command as follows :

popCmd = 'ISPFVAR LMSG(ON)'
Address ISPEXEC 'DISPLAY panel(panid) COMMAND(popCmd)'

This sets the "Long Message in pop-up" setting to "On".

Thanks for everyone's help!
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Jan 17, 2008 2:16 am    Post subject: Reply with quote

It occured to me that you might need the message part of that message handling:
BASL100A '&SMSG' .WINDOW=NORESP .TYPE=ACTION
'&LMSG'
BASL100C '&SMSG' .WINDOW=RESP .TYPE=CRITICAL
'&LMSG'
BASL100N '&SMSG' .WINDOW=NORESP .TYPE=NOTIFY
'&LMSG'
BASL100W '&SMSG' .WINDOW=NORESP .TYPE=WARNING
'&LMSG'
Back to top
View user's profile Send private message Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Jan 17, 2008 9:01 am    Post subject: Reply with quote

flatearther wrote:
I'm not familar with message definitions.

Do TSO command ISRDDN and browse through your ISPMLIB libraries to see the definitions behind the messages. The messages are grouped in ISPMLIB members named by truncating at the last numeric digit. For example, the message samples from warp5 would all be in member BASL10.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
flatearther
Beginner


Joined: 19 Apr 2007
Posts: 13
Topics: 2
Location: Bethesda, MD

PostPosted: Thu Jan 17, 2008 6:42 pm    Post subject: Reply with quote

Thanks Bill,

That works well too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group