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.
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!
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.