Using %INCLUDE on a Linux filepath that seems to exist, but keep getting "file does not exist error"

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

Using %INCLUDE on a Linux filepath that seems to exist, but keep getting "file does not exist error"

Hey guys,

I'm trying to get a big SASEG project to run on our linux server with grid submit. Basically it's a whole ton of short SAS programs with a modular "main" program that tries to pull in the short SAS programs with include statements.

 

Unfortunately, whenever I use an include statement in the main program that looks like this:

%INCLUDE "/prod/user/More_Filepath_Goes_Here/Assign Libraries.sas";


I get the following error:

 

WARNING: Physical file does not exist, /prod/user/More_Filepath_Goes_Here/Assign Libraries.sas
ERROR: Cannot open %INCLUDE file /prod/user/More_Filepath_Goes_Here/Assign Libraries.sas


Which would be fine, except does seem to exist after all, and moreover it seems to exist in exactly the filepath I've specified. I've double and triplechecked for typographic errors, and if there are any, then I have missed them, plus I was able to successfully assign a libname to /prod/user/More_Filepath_Goes_Here

(I should add that the directory in question is a git repo, but it doesn't seem like that would screw things up).

Clearly there is some fundamental issue with my understanding either of how %INCLUDE works, or what grid submit is doing. Does anyone have any idea what the issue might be?

Thanks a million!


Accepted Solutions
Solution
‎04-13-2017 05:42 PM
Super Contributor
Posts: 284

Re: Using %INCLUDE on a Linux filepath that seems to exist, but keep getting "file does not exi

It's case sensitive. Are you sure it's correct?

View solution in original post


All Replies
Solution
‎04-13-2017 05:42 PM
Super Contributor
Posts: 284

Re: Using %INCLUDE on a Linux filepath that seems to exist, but keep getting "file does not exi

It's case sensitive. Are you sure it's correct?

New Contributor
Posts: 2

Re: Using %INCLUDE on a Linux filepath that seems to exist, but keep getting "file does not exi

Thanks for this collinelliot. I had another look at I had capitalized a letter unnecessarily in the macro variable that spits out my filepath. I feel a touch foolish for having spent so much energy on finding the spot where I held down shift for too long, but just the same I think I would've second guessed myself in circles if not for your post.
Super Contributor
Posts: 284

Re: Using %INCLUDE on a Linux filepath that seems to exist, but keep getting "file does not exi

I've been there. My previous job was all Windows and when I started my current job I had several times where this detail got me good.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 103 views
  • 2 likes
  • 2 in conversation