Page 1 of 1

How to Categorize VSAM files as KSDS,ESDS& RRDS using rexx

PostPosted: Wed Nov 16, 2011 3:14 pm
by Ramji Ram
The Requirement is to tag the file type for the given list of files. Using REXX, I'm able to group the files as FLAT,GDG & CLUSTER . Is it possible to further classify the VSAM cluster files as KSDS, ESDS & RRDS in rexx?

Appreciate ur help

Re: How to Categorize VSAM files as KSDS,ESDS& RRDS using re

PostPosted: Wed Nov 16, 2011 3:16 pm
by expat
Yes, you will need to invoke LISTCAT and parse the output

Re: How to Categorize VSAM files as KSDS,ESDS& RRDS using re

PostPosted: Wed Nov 16, 2011 3:30 pm
by Ramji Ram
can u pls tell which keywords/strings should we look for in the listcat outtrap to differentiate KSDS/ESDS/RRDS?

Appreciate ur help

Re: How to Categorize VSAM files as KSDS,ESDS& RRDS using re

PostPosted: Wed Nov 16, 2011 3:51 pm
by Robert Sample
If the LISTCAT output includes NUMBERED, it is RRDS. If the LISTCAT output includes INDEXED, it is KSDS. If you see neither of these terms, it is ESDS. I haven't looked at enough LISTCAT output to distinguish the other types of VSAM files (yet).