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: 7995
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: 7306

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: 7306

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 Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm


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