I have created a score code in Model Studio in SAS VIYA and saved it to /My Folder/Test SAS score code.sas.
I want to score a dataset using this score code, from SAS studio in VIYA.
In our old 9.4 enviroment, the following code works (EDIT: I did not work afterall, I overlooked an error):
data mycas.scored;
set mycas.to_score;
%include "E:\somepath\sascode.sas";
run;
In Viya, I have tried the following:
data mycas.scored;
set mycas.to_score;
%include "/My Folder/Test SAS score code.sas";
run;
But I can't find a way to specify the file path, and get the following errors:
WARNING: Physical file does not exist, /My Folder/Test SAS score code.sas.
ERROR: Cannot open %INCLUDE file /My Folder/Test SAS score code.sas.
Have tried finding some sort of path in enviroment manager with no luck. How are filepaths specified in VIYA so that the file can ble included? I tried copy pasting the contents of the scorecode file, but that does not work, neither on 9.4. or VIYA. The score code look something like this:
* This score code file references one or more analytic stores that are located in the caslib "Models".
* This score code file references the following analytic-store tables:
* _123456789awrsadf_ast
*/
data sasep.out;
dcl package score ...;