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
 

 

Is it a fastest way to get VSAM record count?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rmd3003

New User


Joined: 03 Jul 2006
Posts: 53

PostPosted: Wed Nov 28, 2012 12:05 am    Post subject: Is it a fastest way to get VSAM record count?
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: 7936
Location: Bellevue, IA

PostPosted: Wed Nov 28, 2012 12:12 am    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Wed Nov 28, 2012 2:27 am    Post subject: Reply to: Is it a fastest way to get VSAM record count?
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: 53

PostPosted: Thu Nov 29, 2012 7:55 pm    Post subject: Re: Reply to: Is it a fastest way to get VSAM record count?
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Thu Nov 29, 2012 8:04 pm    Post subject: Reply to: Is it a fastest way to get VSAM record count?
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM 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 7 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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am


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