I need to verify record counts and accum totals on fields is a series of mainframe flat files, and all I have available is SAS. I'm able to print and accum an entire file, but only want and need to see the bottom line (not the millions of individual records). I've been through "dummies", but it (and the SAS site) only covers the online app and statistics. Can anyone help??
Joined: 06 Jun 2008 Posts: 8231 Location: Dubuque, Iowa, USA
INFILE DDIN END=EOF;
NRECS + 1;
PUT 'RECORD COUNT = ' NRECS COMMA10.;
Use _NULL_ to not create a SAS data set. DDIN is the DD name for the input file. If you just want a count, don't input any variables but if you need field counts, change the INPUT statement appropriately. The END= sets a variable to TRUE when the end of the input file is reached.