data _null_;
file 'c:\temp\test.csv';set sashelp.class;
put (_all_)(';') ;
run;
I found this tip . . . cool !!
But how to avoid the dlm symbol on the first position??
H.
data _null_;
file 'c:\temp\test.csv' dsd delimiter=";";
set sashelp.class;
put (_all_)(+0);
run;
data _null_;
file 'c:\temp\test.csv' dsd delimiter=";";
set sashelp.class;
put (_all_)(+0);
run;
Use the proper options.
38 data _null_;
39 file log /*'c:\temp\test.csv';*/ dsd dlm=';';
40 set sashelp.class;
41 put (_all_)(:);
42 run;
Alfred;M;14;69;112.5
Alice;F;13;56.5;84
Barbara;F;13;65.3;98
Carol;F;14;62.8;102.5
Henry;M;14;63.5;102.5
James;M;12;57.3;83
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.