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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1342 views
  • 0 likes
  • 4 in conversation