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

Refreshing/Clearing the previous panel


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sathish Gurumoorthy

New User


Joined: 12 Feb 2009
Posts: 33
Location: Chennai, India

PostPosted: Tue Mar 24, 2009 12:13 pm
Reply with quote

I display some series of panels based on the input from the user. If i am in panel 2 and when i give F3 to display panel 1, it displays the input given by user earlier in panel 1. Also, the cursor goes to ZCMD position.
Here is my rexx and panel code

REXX code:
Code:
/* REXX */                                                 
"ISPEXEC LIBDEF ISPPLIB DATASET ID('TMS047.JCPDIMS.REXX')"
"ISPEXEC LIBDEF ISPMLIB DATASET ID('TMS047.JCPDIMS.REXX')"
/*"ISPEXEC ADDPOP" */                                     
/*"ISPEXEC SETMSG MSG(PLMSG002)"*/                         
                                                           
CALL DISPLAY_PRIMARY_PANEL                                 
                                                           
/************ CALLING TO DISPLAY PRIMARY PANEL ***********/
                                                           
DISPLAY_PRIMARY_PANEL:                                     
"ISPEXEC DISPLAY PANEL(MAINPAN)"                           
                                                           
/*"ISPEXEC REMPOP"*/                                       
/*"ISPEXEC LIBDEF ISPPLIB"*/                               
IF PKEY = 'PF03' THEN                                     
   EXIT                                                   
IF CHOICE1 = 1 THEN                                       
DO                                                             
   CALL DISPLAY_TSO_PANEL                                       
END                                                             
                                                               
/************ CALLING TO DISPLAY TSO UTILITIES PANEL **********/
DISPLAY_TSO_PANEL:                                             
"ISPEXEC DISPLAY PANEL(TSOPAN)"                                 
                                                               
IF PKEY = 'PF03' THEN                                           
DO                                                             
   CALL DISPLAY_PRIMARY_PANEL                                   
END                                                             
IF CHOTSO = 1 THEN                                             
DO                                                             
   CALL DISPLAY_CREATE_PDS_PANEL                               
END                                                             
IF CHOTSO = 2 THEN                                             
DO                                                             
   CALL DISPLAY_COPY_PS_PANEL                                   
END



MAINPAN:

Code:
)PANEL KEYLIST(ISRSPEC)                                       
)ATTR                                                         
 ! TYPE(TEXT) INTENS(HIGH)                                   
 # TYPE(TEXT) COLOR(red)                                     
 @ TYPE(TEXT) INTENS(LOW)                                     
 $ TYPE(INPUT) COLOR(TURQ) CAPS(ON) PAD('_')                 
 % TYPE(INPUT) COLOR(TURQ) CAPS(ON) HILITE(USCORE)           
 ¬ TYPE(OUTPUT) COLOR(PINK) SKIP(ON)                         
)BODY                                                         
                                                             
!  COMMAND ==>%ZCMD                                           
                                                             
#                        all in one utility                   
!                        ------------------                   
                                                             
@  please select your choice :$z+                             
@                                                             
@           1.  TSO UTILITIES          3.  IMS DATABASE       
@                                               
@           2.  JCL                    4.  DB2   
                                                 
@  Message       :¬MSG                           
                                                 
@  PF1=Help       PF3=Exit       ENTER=PROCESS   
                                                 
)INIT                                           
.ZVARS='(CHOICE1)'                               
.HELP=HELPJOB                                   
)REINIT                                         
&CHOICE1=' '                                     
.CURSOR=&CHOICE1                                 
REFRESH (CHOICE1)                               
)PROC                                           
&PKEY = .PFKEY                                   
VER(&CHOICE1,NB,RANGE,1,4)                       
)END                                             


i tried assigning a blank to that variable and placed cursor to variable CHOICE1. but while redisplaying the panel, the cursor is positioning at ZCMD.
I want the panel to be cleared/refreshed while redisplaying again, and also to place the cursor at CHOICE1.
Please help.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Mar 24, 2009 12:32 pm
Reply with quote

Read the chapter about )REINIT in the fine manual. Pay attention to REFRESH.

Regarding cursor placement - You can use the control variable .CURSOR.
Also, you can rename ZCMD, as ISPF looks for this field name.

O.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Call program, directly from panel CLIST & REXX 9
No new posts How to extract the data for current y... DFSORT/ICETOOL 8
No new posts panel creation question TSO/ISPF 12
No new posts Panel variable model line TSO/ISPF 3
Search our Forums:

Back to Top