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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1910 views
  • 0 likes
  • 4 in conversation