@andreibuzurniuc
Some advice — the first step, BEFORE writing any macro, is to create legal valid working SAS code.for a small portion of your situation, without macros and without macro variables. You clearly haven't done this. So let me say that if you don't have legal valid working SAS code without macros and without macro variables, then it will not work when you try to convert it to a macro.
... View more