BookmarkSubscribeRSS Feed

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

Started ‎03-26-2021 by
Modified ‎03-26-2021 by
Views 2,346

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);

Contributors
Version history
Last update:
‎03-26-2021 04:36 AM
Updated by:
SAS Employee

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Article Tags