11-26-2014 06:37 AM
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.?
11-27-2014 07:29 PM
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).
12-01-2014 10:11 AM
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,
Need further help from the community? Please ask a new question.