SAS PROC IMPORT EXPORT for CSV files

PROC IMPORT OUT= WORK.asdf
DATAFILE= "C:\temp.csv"
DBMS=CSV REPLACE;
GETNAMES=YES;
DATAROW=2;
RUN;

PROC EXPORT DATA= WORK.KAZ1
OUTFILE= "C:\sql.csv"
DBMS=CSV REPLACE;
PUTNAMES=YES;
RUN;

Leave a Reply