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 (July 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 ?
In-Reply-To:  <200807291931.m6TH9hNY004594@malibu.cc.uga.edu>
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 > process) > > Any idea on how to realize any of them ?

RTFM on the SysIn option and Proc PrintTo

automagic:

http://www.sascommunity.org/wiki/Using_PrintTo_to_Save_Logs

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


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