I'm consistently getting the following error: Macro keyword MEND appears as text. A semicolon or other delimiter may be missing.
I can get the macro to run by submitting the following string a few times:
*'; *"; *); */; %mend; run;
although once the macro has compiled, it produces a recursive reference error for the variable CLUST. IF someone would be willing to look at my code and let me know what they think is going wrong that would be great!
%macro clusfinal (data = , clust=) ;
if cluster ne &clust then mean1 = "."; run;
proc arima data = clusdat1;
identify var = mean1 (1);
estimate p = 1 outest = autoclus'&clust' ;
proc print data = autoclus;
You need to share your SAS code execution (and compilation) as part of a complete SAS log, not just the code-piece you might think is related. Ensure that all code (including macros and macro variables) are revealed - such as using: