SAS Tip: Use PROC ODSTEXT and macro variables (Daily tip for 2024-Apr-19)


Create global macro variables from these output datasets using, “call symput(global_variable_name,stored_data);” and call this data within PROC ODSTEXT using a simple macro call: “proc odstext; p "{\pard Value = &&global_variable_name \par}"; run;


Thanks to Debra Goldman for this tip. Read more details in this paper from WUSS 2017: Creating Completely Automated Reports in SAS using the ODS RTF Destination Protect Your Results from Human Error.

READ this complete tip   Visit a random SAS tip

Start a topic
About these Tips
A "SAS tip" is a basic unit of information exchange between SAS users. The tips on this board come from sasCommunity.org, from SAS user conferences, from SAS blogs, and from freelance contributions from SAS users like you. We hope that you're able to always learn something new here!


» How you can contribute


Tip-o-meter: 80 tips