BookmarkSubscribeRSS Feed
heroic323
Calcite | Level 5

I am currently having problems regarding my SAS EG project. I created a SAS EG project and within the same directory, the data files are located. I copied the folder into another computer but when I tried to run the project, it doesn't run because apparently the "file is not located". Thank you for your answers.

3 REPLIES 3
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

@heroic323please post the SAS error's and the SAS code that generated the error you are describing.

 

 

ballardw
Super User

@heroic323 wrote:

I am currently having problems regarding my SAS EG project. I created a SAS EG project and within the same directory, the data files are located. I copied the folder into another computer but when I tried to run the project, it doesn't run because apparently the "file is not located". Thank you for your answers.


Here are a few things to look at but likely not exhaustive. Some are operating system dependent.

 

Did you reference the path to the folder from a drive location (Windows) or a root mount point? Incomplete paths would use referential data and the two systems may not be executing from the same folder.

Check spelling on the paths to be identical, to include case for Unix.

If you are running in a server environment then user permissions may be different for another computer/user/login id.

Is the other computer using the same server for SAS? If not then it is very likely the other server path or permissions do not match.

 

 

CaseySmith
SAS Employee

EG stores references to files in projects as absolute paths by default.  So if you move a file referenced in an EG project to another directory, or even rename any part of the containing directory path, EG will be unable to locate the referenced files.

 

You can update file references in EG projects via right-click the file node->Properties->Change, using Tools->Project Maintenance, or the Migration Wizard (MigrationWizard.exe in EG installation directory).

 

However, a better solution for this scenario... you can instruct an EG project to save file references as relative paths, rather than absolute paths, by checking the Use paths relative to the project for programs and importable files option in File->Project Properties->File References.  This will allow you to move the EG project file (.egp) and the files it references anywhere you would like, as long as they stay in the same relative location.

 

For example, if this was your structure...

c:\temp\Project.egp

c:\temp\programs\code1.sas

c:\temp\programs\code2.sas

 

You could move them to...

d:\newhome\SAS\Project.egp

d:\newhome\SAS\programs\code1.sas

d:\newhome\SAS\programs\code2.sas

 

... and the EG project would still find the referenced files (when the option above is checked on), since they are in the same relative location to the .egp file.

 

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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