|
View previous topic :: View next topic
|
| Author |
Message |
Pradeep Thangapandy
New User

Joined: 22 Feb 2008 Posts: 12 Location: United Kingdom
|
|
|
|
| Is there any looping control statement which i can use inside ISPF panels? Similar to "DO" statement in REXX. |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
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 |
|
 |
Pradeep Thangapandy
New User

Joined: 22 Feb 2008 Posts: 12 Location: United Kingdom
|
|
|
|
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 |
|
 |
ofer71
Global Moderator

Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I would use PANEXIT, transferring the dataset name as a parameter and getting back a return code.
O. |
|
| Back to top |
|
 |
parsesource
New User
Joined: 06 Feb 2006 Posts: 97
|
|
|
|
| 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 |
|
 |
|
|