Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

CLIST & REXX :: RE: find particular member name in PDS using REXX

$
0
0
Author: anatol
Posted: Thu Jan 05, 2017 9:46 pm (GMT 5.5)

You can use LISTDS command with MEMBERS parameter

Code:

/* REXX -                                                            */
dsn = your pds                                                         
APP = OUTTRAP( "F.",'*')                                               
 "LISTDS '"||dsn||"' MEMBERS"                                           
APP = OUTTRAP( "OFF")                                                   
 DO I = 1 TO F.0                                                       
    IF substr(word(F.I,1),1,4) = 'AAAA' THEN say F.I                   
 END
                                                                   


where dsn your PDS name, F - is array with LISTDS results


Viewing all articles
Browse latest Browse all 8500

Trending Articles