Page 1 of 1

Listing selected members of a PDS through REXX

PostPosted: Tue Nov 25, 2014 12:54 pm
by ssudhanshu
I'm having trouble in a specific request. I've to search a string in a PDS and list all the members in which the string is found to an output file. The area where I am stuck is to execute SRCHFOR and then listing the same in an output file. How to go with it?

Re: Listing selected members of a PDS through REXX

PostPosted: Tue Nov 25, 2014 1:34 pm
by enrico-sorichetti
what does the manual tell about running SRCHFOR in batch ?

if the SRCHFOR output does not fit Your taste You can always route it to a dataset
and after that process the same whit rexx/<SORT> to produce the report in the needed/wanted format

Re: Listing selected members of a PDS through REXX

PostPosted: Tue Nov 25, 2014 4:25 pm
by NicC
If you want to do it in foreground then take a note of the temporary dataset name holding the results that is being displayed, split screen, go into edit with a new dsn and copy the temporary dataset into the new dataset. Save. Done.