@SIMMII wrote:
The log is generating hundreds of other errors, if I include a class statement do you think it will fix most of my other errors? If so, where should I include the class statement in the macro?
The CLASS statement should fix the X5 problem. With regards to the other errors, it is impossible for me to answer since you didn't show us the other errors.
The CLASS statement should go in the macro in the exact same place as it goes in your non-macro code. You probably need modify the macro definition to include a macro parameter containing the list of CLASS variables as well.
When you run a macro in SAS, you ought to turn on macro debugging tools, specifically run this line of code before you run the macro
options mprint;
Although I question why you need a macro here when you already have written PROC LOGISTIC code that seems to do what you want.
... View more