SAS Procedures

Help using Base SAS procedures
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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 81331 views
  • 3 likes
  • 3 in conversation