Efficiently convert a SAS dataset into a CSV

Adnan picture Adnan · Sep 14, 2010 · Viewed 81.3k times · Source

Can anyone tell me what is the fastest way to programmatically convert a SAS dataset into a CSV file. I know I can use a data step and output to a file etc. But is that the only way?

Thanks, Adnan.

Answer

rkoopmann picture rkoopmann · Sep 14, 2010

something along these lines?

proc export data=sashelp.class
    outfile='c:\temp\sashelp class.csv'
    dbms=csv
    replace;
run;