Page 1 of 1

Search a string in different libraries

PostPosted: Tue Feb 11, 2014 4:45 pm
by Chits
Hello,

My requirement is to search a string 'ABCXXXX'in different libraries/or PDS (like JCLLIB,
PROCLIB etc.)
And want to display this in spool or flat file in some format. For e.g.
SEARCH.PNG

Re: Search a string in different libraries

PostPosted: Thu Feb 13, 2014 12:55 pm
by NicC
Quick answer: you cannot with JCL alone. You can use SRCHFOR in batch and then write a program to convert the output to what you want. (You may be able to manipulate the output using your sort product but I am not sure on this.)