I'm running SAS on demand for academics.
My question how to make the code file= statement work? I'm getting the following error in the LOG: ERROR: HPSPLIT was unable to open the code file for output.
ods graphics on;
proc hpsplit data=Wine CVCC
seed=123;
class Cultivar;
model Cultivar = Alcohol Malic Ash Alkan Mg TotPhen Flav
NFPhen Cyanins Color Hue ODRatio Proline;
code file ="winecode.sas";
grow entropy;
prune costcomplexity;
run;
This CODE statement worked for me. The "home/blund0" is a folder in the SAS on Demand for Academics file system:
proc hpsplit data=Wine CVCC
seed=123;
class Cultivar;
model Cultivar = Alcohol /*Malic*/ Ash /*Alkan Mg TotPhen Flav
NFPhen Cyanins Color Hue ODRatio Proline*/;
code file ="/home/blund0/HPSPLIT/winecode.sas";
grow entropy;
prune costcomplexity;
run;
I would start with setting the file in home directory:
file ="~/winecode.sas"
Bart
This CODE statement worked for me. The "home/blund0" is a folder in the SAS on Demand for Academics file system:
proc hpsplit data=Wine CVCC
seed=123;
class Cultivar;
model Cultivar = Alcohol /*Malic*/ Ash /*Alkan Mg TotPhen Flav
NFPhen Cyanins Color Hue ODRatio Proline*/;
code file ="/home/blund0/HPSPLIT/winecode.sas";
grow entropy;
prune costcomplexity;
run;
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!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.