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 (April 1999, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 29 Apr 1999 08:45:10 +0200
Reply-To:   "Edel, Christoph (Frankfurt)" <CEdel@DE.IMSHEALTH.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   "Edel, Christoph (Frankfurt)" <CEdel@DE.IMSHEALTH.COM>
Subject:   DM commands: OUTPUT vs LST (was: RE: automatically saving SAS lo g, output;...)
Comments:   To: "bill_droogendyk@DOFASCO.CA" <bill_droogendyk@DOFASCO.CA>
Content-Type:   text/plain

As an aside to using the DM commands:

OUTPUT; FILE "physical file name";

for the task of saving the contents of the OUTPUT window to "physical file name", there are situations where this may fail, because the DM command OUTPUT is a toggle between the OUTPUT window and the OUTPUT MANAGER window when the latter is open.

If any window other than the output window is active, the above performs flawlessly, however, when issued while the output window is active and the output manager window is open, the latter becomes active due to the toggle functionality and the FILE command acts upon it, resulting in an error, as FILE is not a valid command for the output manager window.

The solution is to use the LST dm command which will only activate the output window, rather than OUTPUT.

For those not familiar with the output manager window, it can be invoked by the dm command "MAN". It provides a list of all procedural output in the output window, one entry for each procedure call. This helps in locating individual reports in the output window (type 'S' before the desired entry and the prompt goes to the beginning of that procedure output in the output window). Other features include the ability to edit the contents of the output (WHAT? - a typo in the report headline after that four-hour mammoth job? - output manager and 'E' for edit rush to your help)), and the capability of selective printing ('P'; if there are reports both in landscape and portrait in one job, one can set the printer settings /*at least on Win systems*/, select all reports of one kind for printing, then change the printer settings, and select the remaining reports).

Christoph Edel IMS Health, Frankfurt (Germany) CEdel@de.imshealth.com

> -----Original Message----- > From: W. Droogendyk [SMTP:bill_droogendyk@DOFASCO.CA] > Sent: Wednesday, April 28, 1999 5:21 PM > To: SAS-L@UGA.CC.UGA.EDU > Subject: Re: automatically saving SAS log, output; automatically erase log and output screen > > Folks; > > One can only get the right answers by asking the right questions - and this > was a fascinating question. > > A single key can be set up to perform the function that Lyman asks for and > save unique files each time. In the keys window, type in the following > beside the key of choice: > > log;file "c:\dir\%sysfunc(time()).log";clear;output;file > "c:\dir\%sysfunc(time()).lst";clear;pgm; > > A single keystroke saves the log and clears both the log and output windows > with a "time.log"/"time.lst" name. That could probably be enhanced as well. > (SAS6.12 on WinNT). > > W. (Bill) Droogendyk > Quality Systems, Dofasco Inc. > Hamilton, Ontario, Canada > > Voice: 905 548 7200 x3359 > Fax: 905 548 4007 > email: <mailto:bill_droogendyk@dofasco.ca> bill_droogendyk@dofasco.ca > > -----Original Message----- > From: Lyman Wu [SMTP:lwu@PBDSINC.COM] > Sent: Wednesday, April 28, 1999 13:33 > To: SAS-L@UGA.CC.UGA.EDU > Subject: automatically saving SAS log, output; automatically > erase log and output screen > > hello, everyone: > > I am using SAS 6.12 on windows. Is there any way (presetting) that I > can automatically save the sas log and output, after I run the sas program? > To put it more concretely, suppose I have a sas program saved as > "c:\sas\program1.sas", I run it. I want to press one key or something to > save the log as "c:\sas\program1.log", and output as "c:\sas\program1.lst". > > One more step forward, can I press one key to go back to program > editor and erase the log and output screen, assume I have saved them. > > Thanks. > > > Lyman Wu


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