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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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