Search file in JCL library.

JES2/3, JCL, utilities.
Post Reply
Sushil Vaidya
Registered Member
Posts: 15
Joined: Wed Dec 18, 2013 11:19 pm

Search file in JCL library.

Post by Sushil Vaidya »

Hi,

Please some one help me with this. How to see which job is using the incoming file in JCL library?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Search file in JCL library.

Post by enrico-sorichetti »

if the file name is in clear use the ISPF SRCHFOR utility
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Search file in JCL library.

Post by Anuj Dhawan »

Yes, unless it's a trick question - locate the library in ISPF 3.4 and issue SRCHFOR 'dataset to search' on command line. That should highlight the PDS having the 'dataset to search'.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Sushil Vaidya
Registered Member
Posts: 15
Joined: Wed Dec 18, 2013 11:19 pm

Re: Search file in JCL library.

Post by Sushil Vaidya »

Thanks both of you.
enrico-sorichetti wrote: if the file name is in clear use the ISPF SRCHFOR utility
Can we also write a REXX to call ISPF SRCHFOR to run it in batch.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Search file in JCL library.

Post by enrico-sorichetti »

Can we also write a REXX to call ISPF SRCHFOR to run it in batch.
or better, You might want to look at the manuals to see how to directly invoke srchfor in batch

if You are too lazy to look at the manuals, the ISPF srchfor dialogs have an option to run in batch
so Yous do not even have to write the JCL Yourself, ISPF does it for You
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Sushil Vaidya
Registered Member
Posts: 15
Joined: Wed Dec 18, 2013 11:19 pm

Re: Search file in JCL library.

Post by Sushil Vaidya »

Thanks. Batch ISPF works. :)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”