Hi Everyone,
I'm trying to call another SAS Program using %Include statement , when my Master program runs on CAS Server it's throwing error , Kindly help to advise how can call this.
Hello,
Is it the %INCLUDE itself that throws the ERROR in the LOG-screen?
If your *.sas program is in the SAS Content folder you need FILESRVC Access Method to access it.
filename mypg filesrvc folderPath='/Users/Test/My Folder' filename='sales.sas';
%INCLUDE mypg / source2;
Global Statements
FILENAME Statement: FILESRVC Access Method
Koen
You need to provide much more details to get an actual answer.
In general from the other questions about files and CAS it is probably that you need to make sure you know how to reference the file.
Hello,
Is it the %INCLUDE itself that throws the ERROR in the LOG-screen?
If your *.sas program is in the SAS Content folder you need FILESRVC Access Method to access it.
filename mypg filesrvc folderPath='/Users/Test/My Folder' filename='sales.sas';
%INCLUDE mypg / source2;
Global Statements
FILENAME Statement: FILESRVC Access Method
Koen
Hello,
SAS® 9.4 and SAS® Viya® 3.5 Programming Documentation
System Options
SERVICESBASEURL= System Option
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p191674k3chjf3n1vze4cfzfn18e....
For SAS StudioV, add the option to the /opt/sas/viya/config/etc/compsrv/default/sasv9_usermods.cfg file.
For SAS Studio, add the option to the /opt/sas/viya/config/etc/workspaceserver/default/sasv9_usermods.cfg file.
(you need a SAS administrator and/or System administrator to change such a configuration file)
You can check in SAS Studio if the expected value is there by submitting
PROC OPTIONS OPTION=SERVICESBASEURL; run;
interactively in SAS Studio
Koen
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!