>On Thu, 26 Jul 2007 16:30:04 -0500, Steve Grimes <[EMAIL PROTECTED]>
wrote:
 
>We need to count the number of records in about 100 flat files.    Since  
>we're already running these through SyncSort, I'm thinking of keeping and  
>parsing the output of these with Rexx, but thought I would ask first to  
>see if there are other nifty first. 
 
Lots of different ways.  This question comes up every so often, so please
search the archives.  

Since you specifically mentioned SYNCSORT, you can do it with SYNCTOOL,
which is very similar to DFSORT's ICETOOL.

//TOOLRUN EXEC PGM=SYNCTOOL,REGION=2M  
//TOOLMSG  DD SYSOUT=*                               
//DFSMSG   DD SYSOUT=*                               
//IN1      DD DSN=your.input.file,DISP=SHR        
//TOOLIN   DD  *                                     
* COUNT NUMBER OF RECORDS IN INPUT FILE              
   COUNT FROM(IN1)    
/*


Mark
--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group - ZFUS G-ITO
mailto:[EMAIL PROTECTED]
z/OS and OS390 expert at http://searchDataCenter.com/ateExperts/
Systems Programming expert at http://expertanswercenter.techtarget.com/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to