DATA Step, Macro, Functions and more

put (_all_)

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 89
Accepted Solution

put (_all_)

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.


Accepted Solutions
Solution
‎08-25-2011 09:01 AM
PROC Star
Posts: 7,492

put (_all_)

data _null_;

  file 'c:\temp\test.csv' dsd delimiter=";";

  set sashelp.class;

  put (_all_)(+0);

run;


View solution in original post


All Replies
Solution
‎08-25-2011 09:01 AM
PROC Star
Posts: 7,492

put (_all_)

data _null_;

  file 'c:\temp\test.csv' dsd delimiter=";";

  set sashelp.class;

  put (_all_)(+0);

run;


Respected Advisor
Posts: 3,799

put (_all_)

Use the proper options.

38   data _null_;

39      file log /*'c:\temp\test.csv';*/ dsd dlm=';';

40      set sashelp.class;

41      put (_all_)(Smiley Happy;

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

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 2127 views
  • 3 likes
  • 3 in conversation