LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (July 2001, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 23 Jul 2001 14:28:09 -0400
Reply-To:     "Brittain, James" <zqr0@CDC.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Brittain, James" <zqr0@CDC.GOV>
Subject:      Re: Writing the log to a file
Comments: To: "SAS List Serve (E-mail)" <SAS-L@UGA.CC.UGA.EDU>
Content-Type: text/plain; charset="iso-8859-1"

Can you use PROC PRINTTO? This is used to redirect your log to a specified file. That sounds like what you want to do.

HTH, Jim

-----Original Message----- From: DeShon, Joe [mailto:jdesho01@SPRINTSPECTRUM.COM] Sent: Monday, July 23, 2001 2:24 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Writing the log to a file

For auditing and debugging purposes, I need like to write a macro (or some routine) that writes the SAS log to a file from within a SAS program. I want it to work like the File/Save-As menu items in Windows SAS. I need to be able to include it within the program rather than declaring an alternative log file at startup. The intent is to distribute the routine to everybody in my group, so it needs to be rather bullet-proof.

I know I can write this: dm log 'file log_file replace';

But when I run it in Windows, for some reason, it opens a second stray editor window. That gets in my way and confuses the people I support. And I've never gotten it to work under batch Unix, maybe because there is no Display Manager active in a batch session.

How about it? Is there some "write_log_file" statement that I'm missing?

-- Joe

Joe DeShon Manager, Systems and Infrastructure Group CRM / Database Marketing Department Sprint PCS 6130 Sprint Parkway Mailstop: KSOPHJ0412-4B372 Overland Park KS 66251 Work: (913) 762-6172 PCS: (816) 210-0950 Fax: (913) 762-0817 email: jdesho01@sprintspectrum.com


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