Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

REXX Program with ISPF Panels

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: REXX Program with ISPF Panels
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    Post subject:
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: 2360
Location: Israel

PostPosted: Wed Aug 23, 2006 3:56 pm    Post subject:
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: 1232
Location: Israel

PostPosted: Wed Aug 23, 2006 6:14 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 2 Wed Jul 26, 2017 9:11 pm
No new posts saving your settings in ISPF. VintageReceiver TSO/ISPF 9 Wed Jul 26, 2017 6:42 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us