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

Is it a fastest way to get VSAM record count?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rmd3003

New User


Joined: 03 Jul 2006
Posts: 55

PostPosted: Wed Nov 28, 2012 12:05 am
Reply with quote

I have huge VSAM files that needs to be counted on a daily basis. Will this approach using IDCAMS be reliable?

1. Use VSAM VERIFY to update statistics.
2. Use LISTCAT to get record count

Maybe there is a way to do it with SORT?
Are there any issues if files are used by CICS?

Thank you.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Nov 28, 2012 12:12 am
Reply with quote

Record counts may not be accurate if the files can be written in CICS and the files are open in CICS and the CICS region is still running.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Nov 28, 2012 2:27 am
Reply with quote

Why do you need to count the records every day?
Back to top
View user's profile Send private message
rmd3003

New User


Joined: 03 Jul 2006
Posts: 55

PostPosted: Thu Nov 29, 2012 7:55 pm
Reply with quote

Bill Woodger wrote:
Why do you need to count the records every day?


Somebody needs to know how fast they grow........

So this approach is not the best (or reliable). Do I use sort?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Nov 29, 2012 8:04 pm
Reply with quote

The best way is to already have the information. Do you have no audit trail of any type at all which shows additions/deletions relating to the file? How does anyone know nothing goes missing/gets erroneously added?

For know how fast a VSAM files is growing, the record-count is a pretty arbitrary measure anyway: you'd need to relate "records" to "space supporting records" if KSDS - CI and CA freespace being the most important. If all inserts are in one part of the file there may be significantly different new DASD usage than if they are scattered "randomly" across the file (and it could be either less or more used, depending...).

To read an entire VSAM dataset of any size just to get a count of records because someone feels it is important... look in the manuals and find out how VERIFY works...

Are you lucky-enough that a "client" is going to be paying for this and they'll probably not question it?
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts To get the count of rows for every 1 ... DB2 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top