BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] SAS Dataset 파일을 csv 형태로 변환하는 방법을 알려주세요.

Started ‎08-10-2021 by
Modified ‎08-10-2021 by
Views 288

아래의 매크로를 사용하여 변환하실 수 있습니다.

 

%macro csv_convert(path,dat);

ods listing close;

libname source "&path";

ods csv file="&path.\&dat..csv" ;

proc print data=source.&dat noobs;run;

ods _all_ close;

ods listing;

%mend;

/** 변환방법 %csv_convert(경로,sas dataset 명)**/

%csv_convert(c:\temp,ict_num);

%csv_convert(c:\temp,test);

Version history
Last update:
‎08-10-2021 12:36 AM
Updated by:
Contributors

sas-innovate-white.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.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

Article Labels
Article Tags