> 1. How does the exec know when the person hits the PF3 (END) key
Check the return code immediately after you display the panel, like this:
exit_code = 0
do while exit_code = 0
"DISPLAY PANEL(MYPANEL)"
select
when rc = 0 then call PROCESS_INPUT
when rc = 8 then exit_code = 8
otherwise do /* Unexpected error; e.g. panel not found */
exit_code = 16
"SETMSG MSG("zerrmsg")"
end
end
end
EXIT exit_code
> 2. In looking at the )INIT, )REINIT and )PROC statements I am also having
> trouble clearing out a field for the redisplay (like system name).
You might need to use the ISPF panel REFRESH command.
HTH,
Dave Salt
SimpList(tm) - try it; you'll get it!
http://www.mackinney.com/products/SIM/simplist.htm
----------------------------------------
> Date: Fri, 14 Aug 2009 08:01:08 -0500
> From: [email protected]
> Subject: ISPF Panel - REXX usage
> To: [email protected]
>
> Hi,
> I was wondering if someone could help.
>
> I am building an exec that displays a panel, from this panel a person can
> choose a system and a date and under the covers we will display the
> appropraite syslog for the 100 systems we maintain.
>
> Were I am having trouble, since I do not work with ISPF Dialogs all that often
> is in the panel/rexx interfacing. So my question are?
>
> 1. How does the exec know when the person hits the PF3 (END) key as they
> are done viewing logs? The way this is designed is they can view multiple logs
> with 1 invokation of the exec.
>
> 2. In looking at the )INIT, )REINIT and )PROC statements I am also having
> trouble clearing out a field for the redisplay (like system name). I can blank
> the field out, but the panel still shows it filled in. Then the person
> actually
> has to enter it twice for the next display. Does anyone have a sample that
> would help or maybe I am doing this in the wrong place?
>
> Any other ideas/help would be greatly appreciated?
>
> Thanks
> Ms Terri Shaffer
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
_________________________________________________________________
Send and receive email from all of your webmail accounts.
http://go.microsoft.com/?linkid=9671356
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html