BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
CMilena
Calcite | Level 5
When I export txt file whit PROC EXPORT

PROC EXPORT DATA= RATA_0_TXT
OUTFILE= "P:\Risk Management\MORTGAGE\...............txt"
DBMS=TAB REPLACE;
RUN;

I wouldn’t write the column's name .
How can I do?

Thanks in advance
1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Editor’s Note: This is a popular topic. Thanks to @Ksharp for providing the solution below. The following SAS Note shows how to control variable names when using PROC EXPORT with a comma, tab or delimited file:

   

Usage Note 41735

 

 

Hi.
How about this:


[pre]
proc export data=sashelp.class outfile='c:\class.txt' dbms=tab replace;
putnames=no;
run;
[/pre]


Ksharp

View solution in original post

4 REPLIES 4
Cynthia_sas
SAS Super FREQ
Hi:
There have been many previous forum postings on this topic. If you use the forum's search facility you should be able to find some of those previous solutions.

cynthia
Ksharp
Super User

Editor’s Note: This is a popular topic. Thanks to @Ksharp for providing the solution below. The following SAS Note shows how to control variable names when using PROC EXPORT with a comma, tab or delimited file:

   

Usage Note 41735

 

 

Hi.
How about this:


[pre]
proc export data=sashelp.class outfile='c:\class.txt' dbms=tab replace;
putnames=no;
run;
[/pre]


Ksharp

CMilena
Calcite | Level 5
The option putnames=no don't run.
I read previous forum posting.

In the end I use

data _null_;
set db ;
file "P:\Risk Management\MORTGAGE\.........";
put (_all_) (:);run;


Thanks !!
Ksharp
Super User
Do you test it by yourself.
I test it successfully in my SAS 9.2


Ksharp

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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