How do I write data to a semicolon sepr. file with no spaces before the semicolon?
the code (example)
data _null_
file "c:\temp\file.csv";
set sashelp.class;
put name';'sex ';'age;
run;
gives the result (please notice the spaces before the semicolon)
Alfred ;M ;14
Alice ;F ;13
Barbara ;F ;13
Carol ;F ;14
Henry ;M ;14
Should it alle be put in to a compressed string or what?
The case is complicated by the fact that char.vars should be in quotes in the output as in this example (but still with no spaces):
"Alfred" ;"M" ;14
"Alice" ;"F" ;13
"Barbara" ;"F" ;13
"Carol" ;"F" ;14
"Henry" ;"M" ;14