BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

What is difference between the two codes:

I see that both creates txt file.what is the difference?

PROC EXPORT DATA=sashelp.cars
OUTFILE="/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/TYOTA/Ex1.txt"
DBMS=TAB REPLACE;
PUTNAMES=YES;
RUN;


proc export data=sashelp.cars
outfile = "/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/TYOTA/Ex2.txt"
dbms = dlm replace;
delimiter = ' ';
PUTNAMES=YES;
run;
2 REPLIES 2
SASKiwi
PROC Star

Your first example program puts tab characters between the fields. Your second one spaces. Tab and space characters are not normally visible in any editor of your choice. If you examine the output displayed in hexadecimal format though you will see the difference.

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
  • 2 replies
  • 729 views
  • 0 likes
  • 3 in conversation