LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 20 Oct 2008 12:08:09 -0400
Reply-To:     Satindra Chakravorty <satindra@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Satindra Chakravorty <satindra@GMAIL.COM>
Subject:      Tracking number of records processed in a SAS job

Hi.

I have 2 datasets that I am merging and then running through some variable creation steps, all in 1 data step. One of the datasets being merged is unique by key and has approx. 2 million obs.; the other has multiple records per key and has over 100 million obs.

In my data step, I have code like below... filename "scrn" terminal; if mod(_n_,100000)=1 then do; file scrn; put "Number of records processed -> " _n_; end;

As expected, my SAS job is spitting out the number of records processed every 100K records.

Question: Does it spit out text to my terminal every time 100K obs have been written to the output dataset, i.e. after obs from each input dataset read, processed through the data step and written to the output dataset? Or, does it print text to my screen after each time the SAS system has read 100K records from the input file?

I think the answer is the former but I am not sure. Thanks for your clarification.

Sincerely, Satindra.


Back to: Top of message | Previous page | Main SAS-L page