BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] 매일 실행 로그를 물리적 경로에 저장하려고 합니다. 날짜별로 파일명을 달리하고자 할 때는 어떻게 해 야 되는지 문의드립니다.

Started ‎07-05-2021 by
Modified ‎07-05-2021 by
Views 754

log명을 날짜로 생성하고 싶은 경우, 아래 예제프로그램을 활용하셔서 작업해 보시기 바랍니다.

)

data _null_;

dt=put(today(),yymmddn8.);

call symputx('dt',dt);

run;

%let dt=&dt;

proc printto log="c:\temp\&dt..log";

run;

proc print data=sashelp.class;run;

proc printto;run;

Version history
Last update:
‎07-05-2021 10:46 PM
Updated by:
Contributors

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Article Labels
Article Tags