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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am


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