BookmarkSubscribeRSS Feed

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

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

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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Article Tags