View previous topic :: View next topic
|
Author |
Message |
Bandita Bahubalendra
New User
Joined: 08 May 2008 Posts: 15 Location: Bangalore
|
|
|
|
Hi All,
Can anyone tell me how to get the number of records for a list of datasets using REXX?
Thanks in advanvce! |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Using REXX might not be a good option as this can be easily done using SORT.
In REXX, you will have to read the files into a stem variable and the length of the stem variable will give the count of records. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why the need to know counts of records in a dataset.
Surely if this is a business requirement, the programs creating the datasets should give this information. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I concur with all of the above responses.
Read the list, allocate each dataset one at a time, and run SORT to obtain the record count (see the product-specific SORT forums for details). Format the results as needed. |
|
Back to top |
|
|
|