Macro values disclosed

From sasCommunity
Jump to: navigation, search

For all SAS Programmers that ever wanted to solve the question "What value does this macro have --- NOW?"

There is a method to determine the current value of the macro variable at execution time.

The SAS Command %PUT _user_; will print into the SAS Log the current values of the user macro variables defined. (both Global and Local)

This %put command can be added to the SAS Program at any point and will display the values of the macro variables at the "CURRENT NESTING LEVEL" of your SAS program.