Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8166
Location: East Dubuque, Illinois, USA

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

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

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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us