BookmarkSubscribeRSS Feed

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

Started ‎03-26-2021 by
Modified ‎03-26-2021 by
Views 1,814

Question

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

Answer

%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:
‎03-26-2021 04:36 AM
Updated by:
SAS Employee
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 Tags