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

Hi,

 

I'm aware that similar questions has been asked for SAS University, the problem that I'm facing however is in SAS EG.

 

I have a snippet like this:

 

FILENAME NAME 'D:\MyFolder\Prog1.sas';

 

%INCLUDE path;

 

And always got the error: "WARNING: Physical file does not exist"

 

Any help will be appreciated. Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Issue is the same as with SAS UE. 

The location of where SAS is running and where the drive is aren't what you expect. 

 

SAS is running on a server likely in your case and doesn't have access to the shared drive or your computer. It's the equivalent of thinking of SAS is in a computer in the basement. When you submit code, the code is transmitted to the server,  processed on the server and the results sent back to your computer, if applicable. In SAS UE, SAS runs on something that appears to be on your computer, but is really an entity on it's own. 

 

At any rate, workarounds include using an AutoExec file. It allows you to have some specific code run when SAS starts up. You can have project specific autoexec files.

 

Another is to have the server mapped to the same location so that it can see where the D drive is, but you may still need a special way to reference the file.

View solution in original post

1 REPLY 1
Reeza
Super User

Issue is the same as with SAS UE. 

The location of where SAS is running and where the drive is aren't what you expect. 

 

SAS is running on a server likely in your case and doesn't have access to the shared drive or your computer. It's the equivalent of thinking of SAS is in a computer in the basement. When you submit code, the code is transmitted to the server,  processed on the server and the results sent back to your computer, if applicable. In SAS UE, SAS runs on something that appears to be on your computer, but is really an entity on it's own. 

 

At any rate, workarounds include using an AutoExec file. It allows you to have some specific code run when SAS starts up. You can have project specific autoexec files.

 

Another is to have the server mapped to the same location so that it can see where the D drive is, but you may still need a special way to reference the file.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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