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 (February 2001, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 21 Feb 2001 12:16:00 -0500
Reply-To:   Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject:   Re: -LOG and -PRINT output in batch mode?

What about using PROC PRINTTO to redirect to files? Perhaps in AUTOEXEC file:

proc printto log="whateveryouwant.log"; proc printto print="thesamefortheoutput.out"; run;

There you can also add some informations about time, date, ... to get other logs for different runs with macro-variables...

On Wed, 21 Feb 2001 18:02:10 +0200, Arjen Raateland <Arjen.Raateland@VYH.FI> wrote:

>In SAS8.1 in batch mode under Windows the LOG and OUTPUT files are >supposed to get the name of the program to be run, but unfortunately it >is shortened to 8 characters >(like TIEDOS~2.LOG instead of Tiedostonluku_FTP-protokollan_avulla.log). > >When routing the LOG of a batch mode SAS session through the use of the >-LOG options as follows > >(in a config file) > >-log 'temp\sas_batch_mode.log' > >the full name is used (temp is an NT environment variable, which this >time is used without the bang prefix!), but now it's a fixed name. > >I'd like to have the full program name in the LOG and OUTPUT file names. >Is this possible in any way? (Shortened names will probably just confuse >the user.) > >TIA. >-- >Arjen Raateland >Finnish Environment Institute >SAS Support >phone +358 9 4030 0350


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