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.
You can use proc export to quickly export data from SAS to a CSV file. This procedure uses the following basic syntax: /*export data to file called data. csv*/ proc export data=my_data outfile="/home/u13181/data.
Writing a CSV file. If we wish to write raw data in SAS as a comma-separated file, then we can modify our outfile, specify CSV in the dbms option, and omit the delimiter line.
something along these lines?
proc export data=sashelp.class outfile='c:\temp\sashelp class.csv' dbms=csv replace; run;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With