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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1290 views
  • 1 like
  • 2 in conversation