BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jaheuk
Obsidian | Level 7

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.

1 ACCEPTED SOLUTION

Accepted Solutions
art297
Opal | Level 21

data _null_;

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

  set sashelp.class;

  put (_all_)(+0);

run;


View solution in original post

2 REPLIES 2
art297
Opal | Level 21

data _null_;

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

  set sashelp.class;

  put (_all_)(+0);

run;


data_null__
Jade | Level 19

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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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