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

Today I run a project that has %include statement and libname statement, it works fine.

 

Then I created a new project with those two statements, but both of them didn't work. 

 

The error message for statement "%include "C:\user\xxx\abc.sas"; " is 

WARNING: Physical file does not exist, /opt/sas/config/Lev1/SASApp/C:\Users\xxx\abc.sas.
ERROR: Cannot open %INCLUDE file C:\Users\xxx\abc.sas.

 

The error message for statement "libname test "C:\user\xxx";" is

NOTE: LIbrary TEST does not exist.

 

Both the exactly same statements work fine in the other project.

 

Does anyone have some clue about it?

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

I doubt the "project' has anything to do with it.

It is related to which SAS server you connected to.

The one with the error is running on Unix.  You can tell from the path it showed in the error message.  So there is no way it can see the "C:" drive.  That is a Windows filename.

View solution in original post

2 REPLIES 2
Tom
Super User Tom
Super User

I doubt the "project' has anything to do with it.

It is related to which SAS server you connected to.

The one with the error is running on Unix.  You can tell from the path it showed in the error message.  So there is no way it can see the "C:" drive.  That is a Windows filename.

ly2024
Calcite | Level 5

Tom,

 

You right. I checked "Select server", and changed it to "0 Local", now it works fine.


I am a beginner of SAS EG. So, selecting a running server is a must-do setup for a project?

 

Thank you!

Lin

 

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

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
  • 2 replies
  • 580 views
  • 0 likes
  • 2 in conversation