Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

TSO/ISPF :: RE: ISPF - How to come out of ISPF Panel

$
0
0
Author: Willy Jensen
Posted: Wed Feb 22, 2017 5:43 pm (GMT 5.5)

Well, I stand corrected, test shows you can bypass panel on the way back. By the way, the panel invoked from a selection panel must itself be a selection panel.
Driver REXX:
Code:

 address ispexec           
 zresp=''                 
 "vput zresp shared"       
 "select panel(zs1)"       
 "vget yourname shared"   
 say 'your name:' yourname   

First panel
Code:

)ATTR                                   
 + type(text) color(green) skip(on)     
 % type(text) color(white) skip(on)     
)Body expand(\\)                         
%\ \Select panel\ \+                     
%Cmd =>_zcmd \ \                         
+                                       
+                                       
%Selections                             
+                                       
+ 1. +Select second panel               
)Init                                   
 if (&zresp NE &Z) .resp = END           
)Proc                                   
 &zsel = Trans(&zcmd 1,'panel(zs2)'     
               X,'EXIT' ' ',' ' *,'?' ) 
)End                                     

Second panel
Code:

)ATTR                                                 
 + type(text) color(green) skip(on)                   
 # type(input ) color(turq  ) hilite(uscore) caps(off)
)Body expand(\\)                                       
%\ \Display panel\ \+                                 
%Cmd =>_zcmd \ \                                       
+                                                     
+                                                     
+Your name#yourname \ \+                               
)Init                                                 
)Proc                                                 
 &zresp = 'DONE'                                       
 vput (yourname) shared                               
 &zsel = &Z                                           
)End                                                   

_________________
WJ


Viewing all articles
Browse latest Browse all 9405

Trending Articles