View previous topic :: View next topic
|
Author |
Message |
satya12
New User
Joined: 25 Apr 2006 Posts: 32 Location: India
|
|
|
|
Hi
I want to know whether a VSAM file is initialized or not?Is there any way to know this by looking at its characteristics.
Thanks |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
satya12,
The way we initialize VSAM files (only way I know) is to INSERT/DELETE a record.
Code: |
tso listc ent('YOUR.VSAM.FILE') all
|
If the VSAM file is uninitialized the record counts should be:
Code: |
STATISTICS
REC-TOTAL--------------0
---0
REC-DELETED------------0
---0
REC-INSERTED-----------0
REC-UPDATED------------0
|
Dave |
|
Back to top |
|
|
satya12
New User
Joined: 25 Apr 2006 Posts: 32 Location: India
|
|
|
|
Hi Dave
Thanks for the reply.One observation from my side is,for some of the VSAM files the statistics are showing some no. for no. of records but records updated,inserted and deleted are zeros.I think these are initialized as im not having any problems in accessing them in input mode.
Thanks
Satya |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Satya,
Yes, this is an initialized file. The file was defined, repro'd into and has been in an unchanged state.
Dave |
|
Back to top |
|
|
BruceC
New User
Joined: 14 Mar 2006 Posts: 6 Location: Los Angeles
|
|
|
|
One definition of an initialized VSAM file is that the HI Uesd Relative Byte Address will read zero in a LISTCAT.
Here is the HI Used RB from a very active VSAM KSDS dataset.
HI-U-RBA--------54743040
A LISTCAT of a newly created VSAM dataset will show 0. |
|
Back to top |
|
|
satya12
New User
Joined: 25 Apr 2006 Posts: 32 Location: India
|
|
|
|
I knew abt that HI-U-RBA concept but i was not sure whether its correct or not.Now ur reply made me feel that it is roght.
Thank you very much guys for your replies.
Satya |
|
Back to top |
|
|
|