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:         Tue, 8 Jan 2008 09:26:54 -0800
Reply-To:     Peter <crawfordsoftware@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Peter <crawfordsoftware@GMAIL.COM>
Subject:      Re: save report
Comments: To:
Content-Type: text/plain; charset=ISO-8859-1

On 8 Jan, 07:26, Ching <> wrote: > Hi all. > Just wondering if anyone please teach me if it is possible to save the > result produced by proc report as a log file? if so, what is the sas > code? > > thanks heaps. > have a nice days.

ods _all_ close ; ods {your preferred destination} file= "somewhere" <other ODS parameters> ; proc report ................... ............. run; ods _all_ close ; That pushes the results from proc report into a file. However, it won't be the notes and other stuff produced normally on the SAS log. To redirect that, add before the proc report statement in the code above..... proc printto log= "a file somewhere to save the.log" new ; run; And after proc report's run; statement proc printto ; run; * reinstates normal routing for log information.

Good Luck


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