Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To find for a variable in all PDS members

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
vvmanyam

New User


Joined: 16 Apr 2008
Posts: 86
Location: Bangalore

PostPosted: Wed Mar 04, 2009 7:52 pm    Post subject: To find for a variable in all PDS members
Reply with quote

Hi friends
I have a small requirement. I need to Extract all data sets and thier Dispositions from all the JCLs present in a PDS.
So I have succesfully achieved in this way:
1. Trapped all members using LISTDS.
2. Extract each member data in to a compound variable.
3. Perform a loop for the entire array and do the required processing seperately for each member.

But What I wanted know is Can we perform the ISREDIT commands on each of this member with out viewing the member.

Ex:
Code:

ADDRESS ISREDIT  "F DSN="
ADDRESS ISREDIT  "F DISP="


If this is possible I can simplify my process with out actually loping each and every line of the member.


Regards,
Balu
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Wed Mar 04, 2009 8:37 pm    Post subject: Re: To find for a variable in all PDS members
Reply with quote

vvmanyam wrote:
But What I wanted know is Can we perform the ISREDIT commands on each of this member with out viewing the member.


Yes. As long as your macro uses an END statement so that you don't have to type it in manually for each member.
Back to top
View user's profile Send private message
vvmanyam

New User


Joined: 16 Apr 2008
Posts: 86
Location: Bangalore

PostPosted: Thu Mar 05, 2009 10:04 am    Post subject:
Reply with quote

I haven't got what exactly you meant by
Quote:

As long as your macro uses an END statement

I think I have confused you, in tyring to explain the basic requirement.
I am sorry for that.

My exact requirement:
PDS which as JCLs : 'TEST.JCLS'
No of members in it: 5000 jcls
Requirement : Extract Dataset names and their dispositions in each member.
I have trappaed the members with LISTDS in to an array (MEM.)
then extracted each memeber in to a compound variable INARR
PGMNAM- TEST.JCLS(MEM.i)
Code:

"ALLOC DA('"PGMNAM"') F(INFILE) SHR REUSE"
"EXECIO * DISKR INFILE (STEM INARR. FINIS"

Then performed loop for array INARR from 1 to INARR.0
and got the required details. The full procedure is looped for all the members of the pds.

What I wanted to know was with out extracting the entire member data in to array INARR. Can we perform 'F DSN=' and 'f DISP=' tso commands for each members.
If possible please let me know how exactly we can achieve it.

Thanks,
Balu
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Mar 05, 2009 11:41 am    Post subject:
Reply with quote

"F" (FIND) is not a TSO command - it is an ISPF Edit command, that's why superk was assuming you are using Edit Macro to "extract" the members.

With your method (EXECIO - which actually belongs to TSO, not ISPF), you can't use the FIND command.

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

New User


Joined: 16 Apr 2008
Posts: 86
Location: Bangalore

PostPosted: Thu Mar 05, 2009 12:12 pm    Post subject:
Reply with quote

Thanks ofer71
I got confused, Now I Got it!!



Regards,
Balu
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us