If you havent go through the process of permanently storing the macro definition (see SAS(R) 9.2 Macro Language: Reference) you must have the macro definition in the program being run as batch.
Calling the macro is the same in batch or interactive SAS: %macroname(vars to pass);
EJ
The 2025 SAS Hackathon has begun!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.