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

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

$
0
0
Author: Willy Jensen
Posted: Thu Jan 05, 2017 10:17 pm (GMT 5.5)

Short working sample:
Code:

/* rexx */                                                     
 Address TSO                                                   
 sds  = 'a.lib.data'                                           
 mpfx='VSAM'                                                   
 mpfxl=length(mpfx)                                             
                                                               
 zz=outtrap('smbr.')                                           
 "listds '"sds"' members"                                       
 zz=outtrap('off')                                             
 do n=7 to smbr.0                                               
   say 'Source member:' smbr.n                                 
   if Abbrev(strip(smbr.n),mpfx,mpfxl) then say 'match:' smbr.n
 end                                                                                             

_________________
WJ


Viewing all articles
Browse latest Browse all 9405

Trending Articles