IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How can i identify it is KSDS or ESDS


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raman.k

New User


Joined: 26 Feb 2007
Posts: 24
Location: chennai

PostPosted: Wed Mar 28, 2007 3:21 pm
Reply with quote

Hi
I have one vsam file like A.B.C.D
Now how can i identify it is KSDS or ESDS?

Please tell me
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 3:36 pm
Reply with quote

KSDS has two components (.DATA and .INDEX) and ESDS has only one componenet (.DATA). If index component present, it is a KSDS cluster.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 3:52 pm
Reply with quote

LISTCAT might be a good place to start
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 3:57 pm
Reply with quote

Expat,

Code:
LISTCAT might be a good place to start


How do you confirm a cluster is a ESDS/KSDS using LISTCAT?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 4:26 pm
Reply with quote

Does an ESDS have an INDEX in its associations ?

The benefit of using LISTCAT is that the seperate portions of a cluster can be called anything you want them to be called

I can define a cluster as below,
CLST name = HLQ.PROJECT.FILE001
DATA name = HLQ.PROJECT.FILE002
INDX name = HLQ.PROJECT.FILE003

There is no visible corellation between the filenames. Using LISTCAT the associations are ALWAYS shown.

And - looking at the file attributes in LISTCAT the output will show if it is an INDEXED file or not.

Try a few tests and see what you can see.

However, once a VSAM file is migrated via HSM the whole picture changes. The catalog entries for each component are then shown as NONVSAM files, which in effect they are. They are PS file copies of the portions of the KSDS, or ESDS, held on tape via HSM.

Confusing, isn't it ?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 4:34 pm
Reply with quote

Expat,

You highlighted a very good point. Thanks.

But, I just found out one more thing with listcat for one of my ESDS cluster


Code:
ATTRIBUTES
  KEYLEN----------------10     AVGLRECL--------------80     BUFSPACE-----------1
  RKP--------------------0     MAXLRECL--------------80     EXCPEXIT----------(N
  SHROPTNS(1,3)   RECOVERY     UNIQUE           NOERASE     NONINDEXED    NOWRIT



Though Index component value is 0. Do you have any idea why KEYLEN is 10 though its a ESDS cluster?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 4:45 pm
Reply with quote

Is it an ESDS or an RRDS ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 4:49 pm
Reply with quote

Just ran a test by defining an ESDS with KEYS parameter and got the same result as you showed.

I'd guess that someone took another IDCAMS DEFINE for a KSDS changed it from INDEXED to NONINDEXED and forgot to remove the KEYS parameter.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Identify Program Insert DB2 7
No new posts VSAM ESDS File to store large data 4GB JCL & VSAM 5
Search our Forums:

Back to Top