Hi everyone! First of all I want to make clear that I'm fairly new to SAS and the concept of MACROS. So please be patient with me;) While searching the web I came accross a really helpful MACRO set: DO_OVER annd ARRAY. I adjusted my code and implemented the MACROS at different spots of my code. At first everything worked like a charm until I added a MACRO loop. Here's a simple example: %MEND; /*1. Set Array*/ %ARRAY(REGRESSORS,VALUES=A B); %MACRO SIMULATION; %DO MACRO = 1 %TO 2; /*2. Regression*/ proc reg data=panel; model y = %DO_OVER(REGRESSORS); run; %end; %MEND SIMULATION; %SIMULATION; run; Since then I always get the following error message for the MACRO inside the loop: NOTE: Line generated by the macro function "TP". 1 %&MACRO(&®RESSORS&I) - 76 ERROR 22-322: Syntax error, expecting one of the following: a name, ;, /, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_, {. ERROR 76-322: Syntax error, statement will be ignored. Hopefully you could help me with this dilemma..... THANK YOU!!!
... View more