proc arbor data=work.step01
   Leafsize=1
   Splitsize=2
   Mincatsize = 5
   Maxbranch=10
   Maxdepth=6
   Criterion=PROBCHISQ
   alpha = 0.05
   Padjust= CHAIDAFTER
   DEPTH
   MAXRULES=5
   MAXSURRS=0
   Missing=USEINSEARCH
   Exhaustive=0
/*   event='malignant'*/
   ;
input  &varN./ level=interval;
input  &varC./ level=nominal;
target NGOOD/level=binary;
   Performance DISK NodeSize=20000;
   Assess NoValidata measure=MISC;
   SUBTREE LARGEST;
   MAKEMACRO NLEAVES=nleaves;
   save
      MODEL=Tree_EMTREE
      SEQUENCE=Tree_OUTSEQ
      IMPORTANCE=Tree_OUTIMPORT
      NODESTAT=Tree_OUTNODES
      SUMMARY=Tree_OUTSUMMARY
      STATSBYNODE=Tree_OUTSTATS
      Topology=Tree_OUTTOPOLOGY
      Path = Tree_OUTPATH
      Rules=Tree_OUTRules
   ;
   code file="&pth.\sas_rule&i..XML"  PMML   ;
quit;
 when the code statement changed as
code file="&pth.\sas_rule&i..sas";
IT works ,but when become PMML ,it doesn't work.
I have search for help a very long time .
Thanks in advance!
It looks like you need to do it as follows:
ods pmml file="&pth.\sas_rule&i..XML"encoding="UTF-8";
proc arbor. ...
...
code pmml;
run;
ods pmml close;
It looks like you need to do it as follows:
ods pmml file="&pth.\sas_rule&i..XML"encoding="UTF-8";
proc arbor. ...
...
code pmml;
run;
ods pmml close;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.