Subscribe to DSC Newsletter

SAS Code: Show the Values of All Macro Variables in Your SAS Session

SAS Business Intelligence applications use global macro variables to store information about the environment as well as prompt values entered by a user. When developing a Stored Process it is often helpful to review the values of these macro variables. A simple %PUT statement, %PUT _GLOBAL_ ; , will write a listing of the values of all global macro variables to the log, but the formatting leaves a lot to be desired. This post describes a simple utility macro, %PrintMacVars, which can be used to create a report listing macro variables and their values.


Read more here

Views: 5525

Tags: checking, error, macro, process, sas, stored

Comments are closed for this blog post

On Data Science Central

© 2020 is a subsidiary and dedicated channel of Data Science Central LLC   Powered by

Badges  |  Report an Issue  |  Privacy Policy  |  Terms of Service