Page 1 of 1

Search file in JCL library.

Posted: Wed Apr 05, 2017 2:13 pm
by Sushil Vaidya
Hi,

Please some one help me with this. How to see which job is using the incoming file in JCL library?

Re: Search file in JCL library.

Posted: Wed Apr 05, 2017 2:16 pm
by enrico-sorichetti
if the file name is in clear use the ISPF SRCHFOR utility

Re: Search file in JCL library.

Posted: Thu Apr 06, 2017 2:23 pm
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'.

Re: Search file in JCL library.

Posted: Fri Apr 07, 2017 11:57 am
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.

Re: Search file in JCL library.

Posted: Fri Apr 07, 2017 1:14 pm
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

Re: Search file in JCL library.

Posted: Thu Apr 13, 2017 10:02 am
by Sushil Vaidya
Thanks. Batch ISPF works. :)