Date: Wed, 9 Jan 2008 10:58:33 -0500
Reply-To: "Lowe, Timothy J" <Timothy.Lowe@CAROLINASHEALTHCARE.ORG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Lowe, Timothy J" <Timothy.Lowe@CAROLINASHEALTHCARE.ORG>
Subject: Re: SAS code to save result as a log file
Content-Type: text/plain; charset="us-ascii"
> On Jan 8, 11:30 am, Ching <KCWo...@gmail.com> wrote:
> > Hi everyone.
> > Just wondering if anyone could teach me what is the sas code tosave
> > the result from theoutputwindow as a log file?
> > thanks heaps.
> > have a great day.
Hi Ching. The previous poster already gave you the printto code for
saving your output. If you want to save the log to an external file,
here is any easy way to do it.
/* To print SAS log to an external file */
FILENAME templog "c:\sas\log.txt";
PROC PRINTTO LOG=templog;
/* To stop printing to an external file */
PROC PRINTTO LOG='null';
Timothy J. Lowe, Ph.D.
R. Stuart Dickson Institute for Health Studies
Carolinas HealthCare System
This electronic message may contain information that is
confidential and/or legally privileged. It is intended only for the
use of the individual(s) and entity named as recipients in the
message. If you are not an intended recipient of this message,
please notify the sender immediately and delete the material from
any computer. Do not deliver, distribute or copy this message, and
do not disclose its contents or take any action in reliance on the
information it contains. Thank you.