Listing selected members of a PDS through REXX



IBM's Command List programming language & Restructured Extended Executor

Listing selected members of a PDS through REXX

Postby ssudhanshu » Tue Nov 25, 2014 12:54 pm

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?
ssudhanshu
 
Posts: 1
Joined: Tue Nov 25, 2014 12:51 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Listing selected members of a PDS through REXX

Postby enrico-sorichetti » Tue Nov 25, 2014 1:34 pm

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
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
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Listing selected members of a PDS through REXX

Postby NicC » Tue Nov 25, 2014 4:25 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post