View previous topic :: View next topic
|
Author |
Message |
changeurlife2003 Currently Banned New User
Joined: 22 May 2006 Posts: 15
|
|
|
|
Hi,
Am using 3 screens coded in ISPF Dialogmanager.I have developed some code in REXX For integration of these screens.
I would like to put the option F3(EXIT) option in all the screens.
Present process is : Main Screen====>second screen====>third screen
How can i do this in REXX For F3(EXIT) option. |
|
Back to top |
|
|
nuck
New User
Joined: 09 Dec 2005 Posts: 33
|
|
|
|
hi,
this is done in the ISPF panel definitions, and not in REXX.
eg:
)PROC
if (.pfkey = 'F15')
&options='QUIT'
else
VER (&BATCH,LIST,N,Y)
is how I've solved it. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Alternatively, you may use the KEYLIST feature.
O. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
By default, PF3 is assigned to "END" so in this case the DISPLAY PANEL just terminates with a non-zero return code:
Code: |
Show_panel1:
Do Forever
"DISPLAY PANEL(panelname1)"
If RC <> 0 Then Leave
Call Show_panel2
End
Return
Show_panel2:
Do Forever
"DISPLAY PANEL(panelname2)"
If RC <> 0 Then Leave
Call Show_panel3
End
Return
Show_panel3:
Do Forever
"DISPLAY PANEL(panelname3)"
If RC <> 0 Then Leave
Call Do_Your_Stuff
End
Return
|
This way you have Main Screen==>second screen==>third screen=(PF3)=>second screen=(PF3)=>Main Screen=(PF3)=>Exit |
|
Back to top |
|
|
|