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 (January 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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; RUN;

/* To stop printing to an external file */

PROC PRINTTO LOG='null'; RUN;

Tim

Timothy J. Lowe, Ph.D. Senior Scientist 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.


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