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;Absolutely Maxim 4.
And the difference is apparent by the difference in the dbms= option.
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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.
