Search file in JCL library.

JES2/3, JCL, utilities.

Topic author
Sushil Vaidya
New Member
Posts: 9
Joined: Wed Dec 18, 2013 11:19 pm
Has thanked: 7 times

Search file in JCL library.

Postby 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: 822
Joined: Wed Sep 11, 2013 3:57 pm
Been thanked: 69 times

Re: Search file in JCL library.

Postby 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: 2392
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Has thanked: 152 times
Been thanked: 66 times

Re: Search file in JCL library.

Postby 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


Topic author
Sushil Vaidya
New Member
Posts: 9
Joined: Wed Dec 18, 2013 11:19 pm
Has thanked: 7 times

Re: Search file in JCL library.

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

Thanks both of you.

enrico-sorichetti wrote:Source of the post 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: 822
Joined: Wed Sep 11, 2013 3:57 pm
Been thanked: 69 times

Re: Search file in JCL library.

Postby 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
Has thanked: 7 times

Re: Search file in JCL library.

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

Thanks. Batch ISPF works. :)




Return to “JCL - Job Control Language.”

Who is online

Users browsing this forum: No registered users and 0 guests