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

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

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

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0qapul7pyz9hmn0zfoefj0c278a...

 

Koen

 

View solution in original post

4 REPLIES 4
Tom
Super User Tom
Super User

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.

sbxkoenk
SAS Super FREQ

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

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0qapul7pyz9hmn0zfoefj0c278a...

 

Koen

 
krishnaavm123
Fluorite | Level 6
@koen Thanks for your reply when use fileserve method thrown following error
'The Servicebaseurl option must be specified to use fileserve method's

Could U PLS advise what does servicebaseurl meaning . Thanks
sbxkoenk
SAS Super FREQ

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