Search file in JCL library.

JES2/3, JCL, utilities.
Previous topicNext topic

Topic Author
Sushil Vaidya
New Member
Posts: 9
Joined: Wed Dec 18, 2013 11:19 pm

Search file in JCL library.

Post by Sushil Vaidya » Wed Apr 05, 2017 2:13 pm

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: 874
Joined: Wed Sep 11, 2013 3:57 pm

Re: Search file in JCL library.

Post by enrico-sorichetti » Wed Apr 05, 2017 2:16 pm

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: 2461
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Zodiac: Sagittarius

Re: Search file in JCL library.

Post by Anuj Dhawan » Thu Apr 06, 2017 2:23 pm

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.


Topic Author
Sushil Vaidya
New Member
Posts: 9
Joined: Wed Dec 18, 2013 11:19 pm

Re: Search file in JCL library.

Post by Sushil Vaidya » Fri Apr 07, 2017 11:57 am

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: 874
Joined: Wed Sep 11, 2013 3:57 pm

Re: Search file in JCL library.

Post by enrico-sorichetti » Fri Apr 07, 2017 1:14 pm

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-)


Topic Author
Sushil Vaidya
New Member
Posts: 9
Joined: Wed Dec 18, 2013 11:19 pm

Re: Search file in JCL library.

Post by Sushil Vaidya » Thu Apr 13, 2017 10:02 am

Thanks. Batch ISPF works. :)



Previous topicNext topic

Return to “JCL - Job Control Language.”