BookmarkSubscribeRSS Feed

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

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

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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Article Tags