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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1250 views
  • 3 likes
  • 2 in conversation