Finding a member in dataset's specified by whildcards.



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Finding a member in dataset's specified by whildcards.

Postby Mehdi shri » Tue Jun 05, 2012 7:09 pm

Hi freind
I want a JCL utility or a marco to find a member in many PDS that is specified kile this:
PROJ*.TEST*.S*
My means that I looking for a member. It's may be in following PDS
PROJA.TEST1.SOURCE or
PROJB.TEST1.SOURCE or
PROJC.TEST2.SRCE or
PROJD.TEST2.SRCE or
PROJE.TEST4.SOURCE or
PROJF.TEST5.SRCE and
SO ON.
Because of there are many PDS, It is deficult for me to inspect these one by one. I need a job so I can do this fastly.
Best regards.
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: Finding a member in dataset's specified by whildcards.

 

Re: Finding a member in dataset's specified by whildcards.

Postby prino » Tue Jun 05, 2012 7:21 pm

DSLIST 'PROJ*.TEST*.S*'

followed by
M whatever
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

Re: Finding a member in dataset's specified by whildcards.

Postby Mehdi shri » Wed Jun 06, 2012 8:38 am

Dear friend
How I must use this commands you tell me? In a JCL? In command line? Or other places?
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: Finding a member in dataset's specified by whildcards.

Postby Mehdi shri » Wed Jun 06, 2012 8:42 am

Oh friend.
I find it. Your means I use this on command line. But I want use a batch program. Is there any utility for me?
Mehdi shri
 
Posts: 138
Joined: Sun Jan 16, 2011 6:30 pm
Has thanked: 57 times
Been thanked: 0 time

Re: Finding a member in dataset's specified by whildcards.

Postby dick scherrer » Wed Jun 06, 2012 8:58 am

Hello,

You can run TSO in batch via jcl. . .

There are many examples in the forum. Use the forum search looking for IKJEFT01 as the search criteria. Look thru some of the returned hits and see if something will help you.
Hope this helps,
d.sch.

These users thanked the author dick scherrer for the post:
Mehdi shri (Wed Jun 06, 2012 11:35 am)
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post