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



IBM's Command List programming language & Restructured Extended Executor

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

Postby Ramji Ram » Wed Nov 16, 2011 3:14 pm

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
Ramji Ram
 
Posts: 2
Joined: Wed Nov 16, 2011 2:59 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby expat » Wed Nov 16, 2011 3:16 pm

Yes, you will need to invoke LISTCAT and parse the output
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

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

Postby Ramji Ram » Wed Nov 16, 2011 3:30 pm

can u pls tell which keywords/strings should we look for in the listcat outtrap to differentiate KSDS/ESDS/RRDS?

Appreciate ur help
Ramji Ram
 
Posts: 2
Joined: Wed Nov 16, 2011 2:59 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby Robert Sample » Wed Nov 16, 2011 3:51 pm

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).
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post