BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
duanzongran
Obsidian | Level 7
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!

1 ACCEPTED SOLUTION

Accepted Solutions
WendyCzika
SAS Employee

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;

View solution in original post

2 REPLIES 2
WendyCzika
SAS Employee

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;

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to choose a machine learning algorithm

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.

Discussion stats
  • 2 replies
  • 895 views
  • 3 likes
  • 2 in conversation