03-17-2015 11:57 AM
Hi, I'm new to macros and cannot figure out why this doesn't work:
I have a bunch of questions I'm running the chi-square test on comparing two groups so I'm trying to create a macro.
The question names are:
I ran the code without the macro and it worked fine using the question names.
center pagesize=45 nonumber nodate symbolgen;
proc freq data=q1;
title "&question. - Chi-Sq - verifies info";
Any help you can give is much appreciated! Thanks!
03-17-2015 12:01 PM
You would need to be more specific, what doesn't work, what errors/warnings in the log, maybe also what data are you using, provide a datastep with some test data. The code seems fine.
03-17-2015 12:18 PM
The macro looks fine, especially if the same code ran without using a macro. One thing is suspect, though. You have a line:
center ... symbolgen;
These are options, so the word OPTIONS should be there:
options center ... symbolgen;
Could that be the problem?