DATA Step, Macro, Functions and more

how to save the SAS output file into local drive by using SAS university edition

Reply
Regular Learner
Posts: 1

how to save the SAS output file into local drive by using SAS university edition

I downloaded SAS software "SAS university edition" into my laptop with window 10 system. The window 7 has local C: drive, but window 10 only has called "Onedrive" drive. I do not find C: drive for window 10. I created folder "SASUniversityEdition\myfolders" under the drive "Onedrive".

After I run the SAS code, I get the SAS output in the work library: Work.SASout. I want to save it into local drive in the folder "myfolders". So I wrote the SAS code:

PROC EXPORT

DATA =work.SASout

DBMS=xlsx

outfile="/Onedrive/SASUniversityEdition/myfolders/myout.xlsx";

 

An ERROR come in the SAS log file and stated:

The path "/Onedrive/SASUniversityEdition/myfolders/myout.xlsx" is not in the list of accessible paths when SAS is in the lockdown state. 

 

Question: how to save the output in the local drive in window 10 system? Is "Onedrive" a root drive?

 

 

 

Super User
Posts: 22,874

Re: how to save the SAS output file into local drive by using SAS university edition

When you installed SAS UE, you set up a shared folder called myfolders. You export it to that folder, using the shared path, not your C path. SAS UE is not installed on 'your computer' its installed on a Virtual Machine that is running on your computer, that you access using your browser. It's more similar to working with a One Drive but not having to use the web address for it, but getting to use it locally. 

 

I'm sure you're aware OneDrive is likely storing your information to the cloud and not just locally. 

 

Anyways, use the path as follows, and that should work for you. If not, navigate to the myfolders location using the Servers Files and Folders pane, right click, select properties and get the path from there.

 

PROC EXPORT
DATA =work.SASout
DBMS=xlsx
outfile="/folders/myfolders/myout.xlsx" REPLACE; 
RUN;

dixi_sue wrote:

I downloaded SAS software "SAS university edition" into my laptop with window 10 system. The window 7 has local C: drive, but window 10 only has called "Onedrive" drive. I do not find C: drive for window 10. I created folder "SASUniversityEdition\myfolders" under the drive "Onedrive".

After I run the SAS code, I get the SAS output in the work library: Work.SASout. I want to save it into local drive in the folder "myfolders". So I wrote the SAS code:

PROC EXPORT

DATA =work.SASout

DBMS=xlsx

outfile="/Onedrive/SASUniversityEdition/myfolders/myout.xlsx";

 

An ERROR come in the SAS log file and stated:

The path "/Onedrive/SASUniversityEdition/myfolders/myout.xlsx" is not in the list of accessible paths when SAS is in the lockdown state. 

 

Question: how to save the output in the local drive in window 10 system? Is "Onedrive" a root drive?

 

 

 


 

Ask a Question
Discussion stats
  • 1 reply
  • 164 views
  • 1 like
  • 2 in conversation