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

Looping control statement in ISPF panels


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

New User


Joined: 22 Feb 2008
Posts: 12
Location: United Kingdom

PostPosted: Mon Mar 30, 2009 1:49 pm
Reply with quote

Is there any looping control statement which i can use inside ISPF panels? Similar to "DO" statement in REXX.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 30, 2009 1:59 pm
Reply with quote

if You tell what You are trying to achieve, rather than asking if a feature is there
You might get better answers

p.s. product features and capabilities are better described in the manuals
Back to top
View user's profile Send private message
Pradeep Thangapandy

New User


Joined: 22 Feb 2008
Posts: 12
Location: United Kingdom

PostPosted: Mon Mar 30, 2009 2:46 pm
Reply with quote

I want to write validation script with in ISPF panel. I have 10 file fields in panel to be checked for catloged or not. For one file i have done this with in *REXX.....*ENDREXX statements. I can repeat the logic for all 10 files. But the script is getting bigger and it would be difficult for me to maintain it.

Is there any approach which i can follow to avoid repeating same logic in ISPF?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Mar 30, 2009 4:26 pm
Reply with quote

I would use PANEXIT, transferring the dataset name as a parameter and getting back a return code.

O.
Back to top
View user's profile Send private message
parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Wed Apr 08, 2009 12:57 am
Reply with quote

Pradeep Thangapandy wrote:
I want to write validation script with in ISPF panel. I have 10 file fields in panel to be checked for catloged or not. For one file i have done this with in *REXX.....*ENDREXX statements. I can repeat the logic for all 10 files. But the script is getting bigger and it would be difficult for me to maintain it.

Is there any approach which i can follow to avoid repeating same logic in ISPF?


use INTERPRET to generate the right commands in a loop. can be done if your field names are similar e.g. yadda1,yadda2,.....
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 Looking for a little history of ISPF ... TSO/ISPF 5
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top