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

CLIST getting hanged on using PF3 in ISPF panel


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Akash Sharma

New User


Joined: 13 Jan 2009
Posts: 36
Location: India

PostPosted: Wed Jan 21, 2009 5:46 pm
Reply with quote

Hi all,

I have coded CLIST and ISPF panel.
Both are working fine. But as soon as i press PF3 (END KEY), the ISPF screen hangs. I have the pseudo code as below.

Code:


SET PF3 = N

DO WHILE &PF3 NE Y
   ..
   ...
   ....
   ISPEXEC DISPLAY PANEL(##ISPF PANEL##)
   IF &LASTCC = 8 THEN SET PF3 = Y
   .
   IF CONDITION 1 THEN +
   DO
   .
   ..
   ...
   END
   IF CONDITION 2 THEN +
   DO
   .
   ..
   ...
   END
END
EXIT CODE(0)


Could you please help where i have coded wrong? Or what extra i need to code?
Back to top
View user's profile Send private message
Akash Sharma

New User


Joined: 13 Jan 2009
Posts: 36
Location: India

PostPosted: Wed Jan 21, 2009 6:35 pm
Reply with quote

HI all, the problem got solved after some head scratching.
I had defined an error section, in which i had to handle the lastcc error code. Following was the solution.

Code:

ERROR +                 
DO                       
   IF &ECODE = 8 THEN + 
   DO                   
      SET PF3 = YES     
      EXIT CODE(0)       
   END                   
END                     


All, thanks a lot for looking into the query.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Jan 21, 2009 6:36 pm
Reply with quote

I'm not a CLIST expert, but this worked for me:
Code:

PROC 0
...
SET &PANCC EQ 0
DO WHILE &PANCC LT 8
  ISPEXEC DISPLAY PANEL(PANEL_NAME)
  SET PANCC EQ &LASTCC
  ...
END
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 Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top