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

data _null_;
set Work.Sample ;
file 'C:\Users\John\Desktop\Sample.csv' dsd ;
put (_all_) (+0);
run;

 


ERROR: Insufficient authorization to access /sas/config/compute/SASApp/C:\Users\John\Desktop\Sample.csv.

 

Why would export default to server, what am I missing here to set the export to desktop ?

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

The Query Builder in EG does not export anything, it creates datasets through pure SQL code.

The Export wizard sends code to the server that writes a file in WORK, and then EG copies the file to your desktop for further processing (e.g. conversion to Excel).

So you either overrun your WORK quota on the server, or run out of space on your desktop. Consult with your SAS administrators if you have a disk full issue in your WORK.

Time is not an issue, as EG does exactly what I told you before: create a file on the server, then download it.

Setting up a network share between server and desktop will make this much easier, and for that you also need your SAS/server admins.

 

 

View solution in original post

4 REPLIES 4
Kurt_Bremser
Super User

Your SAS session runs on a UNIX server, so you have to use UNIX filename syntax and create your files in a location where you have write permission; I suggest to use your home directory ($HOME).

Afterwards, use the download facility in SAS Studio or the Copy Files task of Enterprise Guide to transfer the file to your PC.

PROCDATARUN
Obsidian | Level 7
Thanks @Kurt_Bremser

Am trying to export a large dataset to CSV which fails due to size when export step is used on EG query builder.
2 mill rows and 100 columns.

Export step on query builder does allow exporting to desktop.

How would you overcome this issue ?

Exporting to a unix location and then downloading adds more time.
SASKiwi
PROC Star

Talk to your SAS administrator about creating a server folder share that is accessible from both the SAS server and your PC, for example via Windows Explorer. Then you can write to this folder using any SAS code and access any data there with desktop apps. Its usually not a good idea to store company on your PC hard drive for security reasons. 

Kurt_Bremser
Super User

The Query Builder in EG does not export anything, it creates datasets through pure SQL code.

The Export wizard sends code to the server that writes a file in WORK, and then EG copies the file to your desktop for further processing (e.g. conversion to Excel).

So you either overrun your WORK quota on the server, or run out of space on your desktop. Consult with your SAS administrators if you have a disk full issue in your WORK.

Time is not an issue, as EG does exactly what I told you before: create a file on the server, then download it.

Setting up a network share between server and desktop will make this much easier, and for that you also need your SAS/server admins.

 

 

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
  • 4 replies
  • 393 views
  • 0 likes
  • 3 in conversation