BookmarkSubscribeRSS Feed
Sid9
Fluorite | Level 6

I have used FTP to put some sas7bdat files into a particular directory called "sas_work1". The "util_bas.sas" file which is referred to below is also in this directory. This directory as seen on WinSCP is located at the <root>. My code currently runs into an error with the line below:

 

%include "/sas_work1/util_bas.sas";

 

The error is "Error: Cannot open %INCLUDE file sas_work1/util_bas.sas" and the note is that the "Physical file does not exist, /sas_work1/util_bas.sas."

 

However, when I try to put all the files into another directory located at the <root> I do not get any errors with the line above. I was wondering if this could be because my code could be running on different grid nodes? If so, how would I be able to tell which directories I could use for this line of code?

 

Thanks

1 REPLY 1
JuanS_OCS
Amethyst | Level 16

Hello @Sid9,

 

I consider your guess is on the right track. It could be that other directories are mout points that are shares with other GRID nodes, and not this sas_work1 (and yes, your code might be running on any server/node, unless it runs locally on SAS foundation). And it could be as well a matter of permissions on this new directory sas_work1. Perhaps the umask is causing you troubles. It is a bit hard without knowing your system.

The best thing you can do is to ask this question to a LInux admin, a good one. They will give you the answer right away.

 

Kind regards,

Juan

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 704 views
  • 0 likes
  • 2 in conversation