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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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