Search for string in PDS and exclude results using JCL

PSA picture PSA · Jan 30, 2014 · Viewed 16.2k times · Source

I am trying to do the following:

1) Search members of a PDS for a string. 2) Exclude the members with the above mentioned string and get a list of members.

I want to do this using a JCL or any other mainframe tool or utility.

Any help is appreciated.

Answer

cschneid picture cschneid · Jan 30, 2014

I think you're looking for the ISPF Search-For utility, which can also be executed in batch.

You can also use the SRCHFOR command at an ISPF member listing screen, then sort by the prompt column which indicates which members had matches.