View previous topic :: View next topic |
Author |
Message |
Fin Beginner
Joined: 19 Jan 2004 Posts: 27 Topics: 8
|
Posted: Wed Dec 01, 2004 10:30 am Post subject: KSDS / ESDS / RRDS |
|
|
Is there any way of telling what VSAM dataset organization type without looking at the JCL that created it? - KSDS/ ESDS etc?
(sorry for asking a basic question, i am trying to get the fundamentals right) |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Dec 01, 2004 10:32 am Post subject: |
|
|
Fin,
Fileaid can give you this information. Option 3.5 (VSAM). Is this what you are looking at ?
Thanks,
Phantom |
|
Back to top |
|
 |
Fin Beginner
Joined: 19 Jan 2004 Posts: 27 Topics: 8
|
Posted: Wed Dec 01, 2004 10:36 am Post subject: |
|
|
Thats great info - thanks Phantom!
I am just trying to get myself up to speed with VSAM stuff. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Dec 01, 2004 11:23 am Post subject: |
|
|
Fin,
Listcat also gives you the information. I would prefer a listcat command over fileaid because not every shop has fileaid.
Code: |
//STEP0100 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENT('VSAM CLUSTER') ALL
/*
|
Now under the properties you can see indexed, numbered, nonindexed, linear which will be translated as follows.
Code: |
INDEXED = KSDS
NUMBERED = RRDS
NONINDEXED = ESDS
LINEAR = LDS
|
Listcat can also be run as a TSO command
Code: |
TSO LISTCAT ENT('VSAM CLUSTER') ALL
|
Hope this helps...
Cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Fin Beginner
Joined: 19 Jan 2004 Posts: 27 Topics: 8
|
Posted: Thu Dec 02, 2004 7:11 am Post subject: |
|
|
Thats very helpful, thank you.
Is LISTCAT exclusively a VSAM tool? Are there any other times when you would use it? |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Dec 02, 2004 7:35 am Post subject: |
|
|
Fin,
Code: |
Is LISTCAT exclusively a VSAM tool?
|
Not Exclusively though. I works for non-vsam datasets too. But I can say its designed specially for VSAM. For non-vsam datasets it does not give you all the attributes that it would give for a vsam.
for example, LRECL, BLKSIZE.....will not be shown for non-vsam.
Code: |
Are there any other times when you would use it?
|
I could think of GDGs. It can be used to find the versions of a GDG. For example you need (-n) version of a GDG, it will return u the full version number.
I also is used to find whether a dataset is catalogued or not. Suppose u have a REXX routine dealing with datasets and if u just want to check for the presence of a dataset ppl normally use SYSDSN. But that would recall any migrated datasets & recall all migrated versions if u r trying to look for the existence of a GDG base.
In these case LISTCAT can check the presence of a dataset without recalling them.
Hope this help,
Thanks,
Phantom |
|
Back to top |
|
 |
|
|