BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
me55
Quartz | Level 8

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

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
Your have to determine the correct server path to use and you need to do that on the server. Your IT area can tell you or you can try to create a new library and see where you can navigate. You can look into the COPY FILES task from Chris Hemidinger to move files to/from the server.

View solution in original post

2 REPLIES 2
Reeza
Super User
Your have to determine the correct server path to use and you need to do that on the server. Your IT area can tell you or you can try to create a new library and see where you can navigate. You can look into the COPY FILES task from Chris Hemidinger to move files to/from the server.
me55
Quartz | Level 8

thanks, stupid me forgot to create the output directory and didnt realize it....once i did that, subbing in the directory worked great. 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 534 views
  • 2 likes
  • 2 in conversation