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

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
Fluorite | Level 6

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

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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