Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1243
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us