Skip to content

Instantly share code, notes, and snippets.

@joosti
Created November 26, 2014 23:23
Show Gist options
  • Save joosti/bf3153533f714b128f18 to your computer and use it in GitHub Desktop.
Save joosti/bf3153533f714b128f18 to your computer and use it in GitHub Desktop.
SAS macro to export csv
%macro myExport(dset=, file=);
%let filename = "&file";
PROC EXPORT DATA= &dset OUTFILE=&filename DBMS=CSV REPLACE;
RUN;
%mend;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment