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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 777 views
  • 0 likes
  • 3 in conversation