IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX Program with ISPF Panels


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
changeurlife2003
Currently Banned

New User


Joined: 22 May 2006
Posts: 15

PostPosted: Thu Aug 17, 2006 1:50 pm
Reply with quote

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
View user's profile Send private message
nuck

New User


Joined: 09 Dec 2005
Posts: 33

PostPosted: Wed Aug 23, 2006 1:45 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Aug 23, 2006 3:56 pm
Reply with quote

Alternatively, you may use the KEYLIST feature.

O.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Aug 23, 2006 6:14 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top