Date: Wed, 16 Feb 2000 14:21:00 +0100
Reply-To: detecsm_hellriegelg@WESTLB.DE
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gehard Hellriegel <detecsm_hellriegelg@WESTLB.DE>
Subject: Re: Question about SAS Logs
Content-type: text/plain; charset=us-ascii
You can redirect the log via
PROC PRINTTO LOG="data.log"; RUN;
This will put the log into the SAS default directory.
The other way is to call SAS in batch-mode, e.g. SAS -SYSIN DATA.SAS from a
commandline. The log then is written into DATA.LOG automaticly.
Kyle Dane <kyledane@MY-DEJA.COM> on 15.02.2000 23:45:36
Bitte antworten an Kyle Dane <kyledane@MY-DEJA.COM>
An: SAS-L@LISTSERV.UGA.EDU
Kopie: (Blindkopie: DeTeCSM HellriegelG/D/ExternalStaff/WLB)
Thema: Question about SAS Logs
This may fall into the category of "frighteningly obvious" but I haven't
found the solution in my SAS manuals, so here goes:
I am using SAS 6.12 on a PC and I would like to have certain SAS
programs produce a log file every time they run. The default is to
produce them to the screen, but not to a file. When I run data.sas, I
want a program called data.log to be produced containing the log of the
session and I'd like it to end up in the same directory as data.sas. If
at all possible, I'd like to have a command within data.sas that leads
to this result rather than invoking a command line every time I run my
program.
Thanks,
Kyle
--
Kyle Dane
Programmer/Analyst - UCSF Division of Geriatrics
kdane@medicine.ucsf.edu - 415-514-0714
Sent via Deja.com http://www.deja.com/
Before you buy.
Mit freundlichen Gruessen
DeTeCSM, Gerhard Hellriegel
WestLB
Abteilung: 001-80622
Aderstr. 22
D - 40217 Duesseldorf
Tel.: +49211 826 6173
Fax: +49211 826 5393