hey, i am working in sas eg on a sas server. i can create an xls, say outfile.xls, in the working directory but i need it in another directory, say /sas/sas01/project/output/. so i need a way to either copy the xls to another directory or create it in another directory and i am having issues figuring that out. here is how i am creating it...
ods html file="WORK.OUTFILE.xls";
proc print DATE=DATAFILE;
run;
ods html close;
when i tried just subbing in the directory, that failed. then i tried using a libref and that failed....
thanks, stupid me forgot to create the output directory and didnt realize it....once i did that, subbing in the directory worked great.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.