Using Macro Variables in a Custom Table Template

It is possible to use either numeric or character macro variables in a template definition (in addition to dynamic variables). Macro programmers might find it odd to refer to numeric or character macro variables, but you have to consider how the macro variable will be used in the template.

Depending on the type of the macro variable, you declare the macro variable with either the MVAR or NMVAR statement in PROC TEMPLATE. For example, use the MVAR statement to define a character macro variable that will hold header text, and use the NMVAR statement to define a numeric macro variable that will hold the results of a numeric calculation.

The template HR_MACRO defines four character macro variables ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.