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

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!

1 ACCEPTED SOLUTION
3 REPLIES 3
MickeyTony
Calcite | Level 5
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.
collinelliot
Barite | Level 11

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 3 replies
  • 668 views
  • 2 likes
  • 2 in conversation