f



Re: Unix SAS: How to save log file while in SAS session? #2

On Wed, 18 Aug 2004 12:18:03 -0500, Duck-Hye Yang <dyang@CHAPINHALL.ORG>
wrote:

>Hello,
>
>I am using SAS Unix Display manager.
>I put together single small sas programming files in one giant sas
programming file.
>I need to save log and output files AFTER each single small programming
file.
>The problem is that I do not know how to save log and output while in SAS
session.
>
>Below is the outline of what I'd like to do:
>
>
>DM 'clear log';
>DM 'clear output';
>SAS 1 programming start here
>end here
>x 'file "SAS_1.log" ';
>x 'file "SAS_1.lst" ';
....

Hi, Duckhye,

Use dm statement, instead of x. On windows, the following:

dm log 'file "sas_1.log"' pgm;

dose

(1)move you to the log window;
(2)issues file command; and
(3)come back to pgm window

Cheers,
Chang
0
chang_y_chung (1975)
8/23/2004 9:25:52 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies
971 Views

Similar Articles

[PageSpeed] 41

Reply: