I am trying to run example code from SAS proc rulegen
documentation:
proc dmdb batch data=sampsio.assocs out=dmassoc dmdbcat=catassoc; id customer; class product(desc); run; proc assoc data=dmassoc dmdbcat=catassoc out=datassoc(label='Output from Proc Assoc') items=5 support=20; cust customer; target product; run;
First part works well, but second gives an error:
The data= dataset should not be DMDB encoded type
Does anyone know what the problem is? I use SAS Enterprise Guide 6.100, no EM - is it possible for me to use proc rulegen, proc assoc, etc.?
It looks like you should use sampsio.assocs for the data= option on the PROC ASSOC statement instead of dmassoc.
Hope that helps,
Wendy
It looks like you should use sampsio.assocs for the data= option on the PROC ASSOC statement instead of dmassoc.
Hope that helps,
Wendy
Thank you WendyCzika, it helped. However, when using own data (not this from the example) they have to be sorted by customer (and proc dmdb step may be needed in order to create a catassoc catalog).
Hi ajanie,
What are you trying to do? Score new data using Enterprise Guide?
If that is the case, add a Score node to your flow, run it, and borrow the optimized score code.
The reason you need the sorted by customer is that there is an id statement in your proc dmdb.
I hope it helps,
M
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!
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.