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

How to know Vsam is initialized or not


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
satya12

New User


Joined: 25 Apr 2006
Posts: 32
Location: India

PostPosted: Tue Apr 25, 2006 3:38 am
Reply with quote

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
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Apr 25, 2006 5:54 am
Reply with quote

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
View user's profile Send private message
satya12

New User


Joined: 25 Apr 2006
Posts: 32
Location: India

PostPosted: Tue Apr 25, 2006 10:14 am
Reply with quote

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
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Apr 25, 2006 7:41 pm
Reply with quote

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
View user's profile Send private message
BruceC

New User


Joined: 14 Mar 2006
Posts: 6
Location: Los Angeles

PostPosted: Wed Apr 26, 2006 2:55 am
Reply with quote

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
View user's profile Send private message
satya12

New User


Joined: 25 Apr 2006
Posts: 32
Location: India

PostPosted: Wed Apr 26, 2006 3:15 am
Reply with quote

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
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top