View previous topic :: View next topic
|
Author |
Message |
dkarthikreddy
New User
Joined: 14 Mar 2008 Posts: 28 Location: bangalore
|
|
|
|
I would like to know how can I count the number of records in all the versions of a GDG, which are tapes. whthout copying them into a single file .
Thanks,
Karthik |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
My first question would be why would you either want to do this, or need to do this.
One idea would be to use SORT to read the generations using DD DUMMY as SORTOUT and get the counts from the SYSOUT.
But, once again, why |
|
Back to top |
|
|
dkarthikreddy
New User
Joined: 14 Mar 2008 Posts: 28 Location: bangalore
|
|
|
|
Thanks for the reply..
While analizing we came across this situation where in which we have to take the number of records and build our modules.. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
But, once again, why |
Quote: |
While analizing we came across this situation where in which we have to take the number of records and build our modules.. |
sounds like to OP is training to be a politician. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
sounds like to OP is training to be a politician. |
Or a manager
I can honestly say that in 30+ years of IT I have never come across the need to know how many records are in a file.
Please give the reason for this crazy task. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
dkarthikreddy wrote: |
I would like to know how can I count the number of records in all the versions of a GDG, which are tapes. whthout copying them into a single file . |
Who orginated this request?
And if this
Quote: |
While analizing we came across this situation where in which we have to take the number of records and build our modules.. |
is true - one day, sooner or later, all of us would be too busy in counting the number of records in many files we deal with. . . . Suggest you tell us what your final goal is and why this approach was one of the alternatives - I believe, there may be better appraches to achieve that, once the requirement is understood. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
A COUNT combined with NODETAIL in Syncsort doesn't require any records to be copied. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
we have to take the number of records and build our modules.. |
What might be changed in the code that would depend on record count?
If you talk with the tape storage management people, they can probably tell you the amount of data contained in a tape file. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
If your tape management system is CA-1, you can get a good approximation for an FB file by calculating: (block size / logical record length) * block count. |
|
Back to top |
|
|
|