IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to get the number for records for a list of datasets?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bandita Bahubalendra

New User


Joined: 08 May 2008
Posts: 15
Location: Bangalore

PostPosted: Wed Jul 15, 2009 12:34 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jul 15, 2009 12:42 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 15, 2009 1:46 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Jul 15, 2009 4:26 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top