Date: Tue, 29 Jul 2008 15:52:22 -0400
Reply-To: "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Subject: Re: Any way to redirect log messages ?
Content-Type: text/plain; charset=us-ascii
> From: SUBSCRIBE SAS-L Tom Smith
> My SAS code on UNIX is running a big job, it kicks off, say
> 100, sub-jobs.
> The log file may be too big after the whole job is done.
> I am thinking,
> 1) find a way to redirect log messages. Say, conditionally
> redirect log
> messages of each sub-job to a seperate log file;
> 2) In the process, pipe to unix to check the size of the log
> file, when it
> reach a certain size, rename the log file and 'touch' a new
> one. (-- I am
> not sure this is applicable, for the log file may have a lock
> when in SAS
> Any idea on how to realize any of them ?
RTFM on the SysIn option and Proc PrintTo
NOTE: this trick is written for Windows
Your Mileage -- and File Extension -- May Vary!
Ron Fehd the (alt)log maven CDC Atlanta GA USA RJF2 at cdc dot gov