Hello Paige, unfortunatly that is not the case. The code works perfectly fine as long as it is not inside the macro. These 2 variable are created by the SQL procedure (see also: Macro Variables and System Options : Automatic Macro Variables (sas.com) ). But if I want to run the code through a macro, the macro wants to resolve them before the SQL procedure even started (that's what I assume, not sure though) Best regards LE4
... View more