BookmarkSubscribeRSS Feed
Ju
Calcite | Level 5 Ju
Calcite | Level 5

Hallo,

is tehre any possibility to export a txt file without a header without using the PUTNAMES=NO?

The background is: we use the SAS 9.1.2 and it does not support the PUTNAMES command.

Thank you so much in advance!

Best regards

Julia

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Your probably better of writing an exported yourself with datastep file ...; and put commands.  You can do proc export and output the code, then copy that and modify it slightly.

data_null__
Jade | Level 19

You don't need to involve proc export at all.

filename heart '~/heart.csv';
data _null_;
  
set sashelp.heart;
   file heart dsd dlm=',';
  
put (_all_)(:);
   run;
  
Ksharp
Super User
ods csv file='c:\temp\x.txt' ;
proc report data=sashelp.class nowd noheader;
run;
ods csv close;

Xia Keshan

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 1130 views
  • 0 likes
  • 4 in conversation