View previous topic :: View next topic
|
Author |
Message |
rmd3003
New User
Joined: 03 Jul 2006 Posts: 55
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Why do you need to count the records every day? |
|
Back to top |
|
|
rmd3003
New User
Joined: 03 Jul 2006 Posts: 55
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|