Re: Trying to issue an Error Message during ISPF Panel Initialization in REXX Exec



That's exactly what I needed. Thank you very much for the helpful tips and
quick response Dave!

Vince

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@xxxxxxxxxxx] On Behalf
Of Dave Salt
Sent: Friday, May 15, 2009 8:01 PM
To: IBM-MAIN@xxxxxxxxxxx
Subject: Re: Trying to issue an Error Message during ISPF Panel
Initialization in REXX Exec


The panel is doing a VGET but the program didn't do a VPUT. Simply remove the
VGET from the panel or add a VPUT to the program. Either one of those should
fix it.

However, I'd suggest that instead of doing either of those things it would be
much better to simply issue the message directly from the program. For
example, change the program to look like this:

ZERRHM = 'ISR00000'
ZERRSM = 'New dataset exists'
ZERRLM = 'The new dataset name entered already exists.'
ZERRALRM = 'YES'
"SETMSG MSG(ISRZ002)"
"DISPLAY PANEL(HLVERF)"

This allows you to remove all the message logic from the panel and not worry
about passing flags back and forth. As an alternative you could remove the
SETMSG shown above and do it this way instead:

msgnum = "ISRZ002"
"DISPLAY PANEL(HLVERF) MSG("msgnum")"

If you do it this second way then remember to set MSGNUM to null before you
first display the panel, and reset it back to null after each display.

HTH,

Dave Salt

SimpList(tm) - try it; you'll get it!
http://www.mackinney.com/products/SIM/simplist.htm






----------------------------------------
Date: Fri, 15 May 2009 18:36:21 -0700
From: vlee@xxxxxxxxx
Subject: Trying to issue an Error Message during ISPF Panel
Initialization in REXX Exec
To: IBM-MAIN@xxxxxxxxxxx

I'm trying to issue an error message when displaying an ISPF panel in
a Rexx exec but the panel comes up without the error message. Here is
the Rexx
code:

errfnd = 'Y'
"DISPLAY PANEL(HLVERF)"

Here is the INIT section of the panel:

)INIT
.ZVARS = '(REPL)'
&NEWDSN = &Z
&REPL = &Z
VGET errfnd
IF (&ERRFND EQ 'Y')
&ZERRHM = 'ISR00000'
&ZERRSM = 'New dataset exists'
&ZERRLM = 'The new dataset name entered already exists.' &ZERRALRM =
'YES' .MSG = ISRZ002
.RESP = ENTER


Any ideas on what I'm doing wrong?

Thanks.

Vince

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send
email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
_________________________________________________________________
Create a cool, new character for your Windows Live(tm) Messenger.
http://go.microsoft.com/?linkid=9656621

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO Search the archives
at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.



Relevant Pages

  • Re: Gemini pictures on TV
    ... "The Gemini-ATV Status Panel (ASP), was mounted on the forward end of the Target Docking Adapter of the Agena Target Vehicle where it was visible to the astronauts in the Gemini spacecraft during and after the docking maneuver. ... The ASP system consisted of a display panel with nine display lights and three analog dials and the necessary circuitry which was distributed throughout the Gemini-ATV. ...
    (sci.space.history)
  • Re: F14 - Weird Prototype?
    ... The game also has the display ... either prototype or early production category. ... Also, the speaker panel ... Any production dates inked to the edges of the playfield? ...
    (rec.games.pinball)
  • Re: Memory leaks and how to solve them
    ... management and related issues and I have learned to use the NetCFRPM ... created to display the details of the task. ... the panel and any list that contains the 25 custom controls ... I have tried adding code that removes the event handler ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Resources
    ... It displays a panel and a Project Guide toolbar. ... Wizard-like interface) project and task set up. ... Resources display lets you do the same thing for resources. ...
    (microsoft.public.project)
  • Re: Dell Latitude video presentation is larger than the display!
    ... > but issues with the display. ... > the panel. ... > replaced LCD panel and the system? ... the switch positions required for those panels. ...
    (comp.sys.laptops)