Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to know Vsam is initialized or not

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: How to know Vsam is initialized or not
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    Post subject: Re: Vsam initialization
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    Post subject: Re: Vsam initialization
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    Post subject: Re: Vsam initialization
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    Post subject:
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    Post subject: Re: How to know Vsam is initialized or not
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts VSAM define for large file jerryte JCL & VSAM 9 Wed Oct 05, 2016 1:51 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us