SGRENDER Procedure

DYNAMIC Statement

Defines the values for dynamic variables in your StatGraph template code.
See: Defining Dynamic Variables

Syntax

DYNAMIC variable-assignment(s);

Required Argument

variable-assignment(s)
specifies the values for one or more dynamic variables. The variables that you assign must also be declared in a DYNAMIC statement within the StatGraph template.
You can specify either a numeric value or a quoted text string. For example, the following statement defines one string variable and one numeric variable: dynamic region="Europe" limit=3000;

Details

Description

The DYNAMIC statement defines values for dynamic variables that are used in your StatGraph template.
You can either specify variables on multiple DYNAMIC statements, or specify all of your variables on a single DYNAMIC statement.
Note: If your template uses a dynamic variable to specify a required attribute, such as a variable name, and the name is misspelled or not provided in the SGRENDER procedure, then a warning is issued and the respective plot statement drops out of the final graph. A graph is produced, but it might be a blank graph, or it might show the results of all statements except those that are in error.

Special Dynamic Variables

Some special dynamic variables can be declared and referenced in a StatGraph template and do not need to be assigned in the DYNAMIC statement of the SGRENDER procedure. The following table describes those dynamic variables.
Special Dynamic Variables
_LIBNAME_
Represents the name of the library that contains the data set.
_MEMNAME_
Represents the name of the library member that contains the data set.
_BYLINE_
Represents the complete BY line, when you specify a BY statement.
_BYFOOTNOTE_
When the BYLINE=FOOTNOTE option is specified in the ODS Graphics statement, the BY line information is set in this dynamic. Typically, you use this dynamic with the ENTRYFOOTNOTE statement in your template.
_BYTITLE_
When the BYLINE=TITLE option is specified in the ODS Graphics statement, the BY line information is set in this dynamic. Typically, you use this dynamic with the ENTRYTITLE statement in your template.
_BYVAR_
Represents the name of the first BY variable, when you specify a BY statement.
_BYVARn_
Represents the name of the nth BY variable, when you specify a BY statement with multiple variables.
_BYVAL_
Represents the first BY value, when you specify a BY statement.
_BYVALn_
Represents the value of the nth BY variable, when you specify a BY statement with multiple variables.