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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!