Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mp_ds2csv.sas File Reference

Export a dataset to a CSV file. More...

Go to the source code of this file.

Detailed Description

Export to a file or a fileref Usage:

%mp_ds2csv(sashelp.class,outref="%sysfunc(pathname(work))/file.csv")
Parameters
dsThe dataset to be exported
outfile=The output filename - should be quoted.
outref=The output fileref (takes precedence if provided)
outencoding=The output encoding to use (unquoted)
Version
9.2
Author
Allan Bowe (credit mjsq)

Definition in file mp_ds2csv.sas.