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

Hello!

 

I've got SAS 9.4, workmachine on MS Widows OS(with active access Interface to PC Files), SAS on UNIX OS

 

While running code:

 

proc sql;
create table t1 (id int, typ int, dt char(8), qty int);
insert into t1 
values (1, 2, '20190325', 50)
 values (2, 2, '20190320', 15)
  values (3, 3, '20190401', 50);
quit;

filename = tratata "С:\!lib\2.xlsx";

PROC EXPORT DATA = t1
  DMBS = xlsx
  OUTFILE = tratata replace;
  SHEET = "T1";
RUN;

 

 

I am getting error:

ERROR:Temporary file for XLSX file can not be created  -> /home/SASoft/SASConfig/Lev1/SASApp/C:\!lib\/2.$$1. Make sure path name is correct and that you have write permissions.

 

Can't you say, is it possible to export file not on internal SAS folderpath(where access is denied), but on the MS Windows folderpath, being specified in the code?

 

Thx!

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

A SAS process can write output only to locations that are available to it on the operating system level.

Your SAS runs on a UNIX server, so you can only use locations on that UNIX server.

If you have an active mount of a Windows resource on UNIX, you can use it. But you have to use UNIX filename syntax, of course. Drive letters and backslashes are only used on Windows.

 

Get in touch with your system administrators, they can advise you what's best with your setup.

View solution in original post

2 REPLIES 2
Kurt_Bremser
Super User

A SAS process can write output only to locations that are available to it on the operating system level.

Your SAS runs on a UNIX server, so you can only use locations on that UNIX server.

If you have an active mount of a Windows resource on UNIX, you can use it. But you have to use UNIX filename syntax, of course. Drive letters and backslashes are only used on Windows.

 

Get in touch with your system administrators, they can advise you what's best with your setup.

Ivan555
Quartz | Level 8
Understood, thank you much!

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
  • 471 views
  • 1 like
  • 2 in conversation