When you use dynamic
variables, be aware that some variables must be initialized, whereas
for others, initialization is optional. For example, suppose that
the graph file Histogram.sgd is defined with dynamic content in the
title. In order to execute this SGD file with the correct title, the
dynamic variable used in the title must be initialized. (In the example,
the dynamic variable is named TITLE.)
proc sgdesign sgd = "Histogram.sgd";
dynamic TITLE = "This is a Histogram";
run;
However,
if the SGD file was created with a shared variable, then that shared
variable has already been assigned a column value in the SGD file.
You do not need to specify a value for the variable unless you want
to change the column. For more information about shared variables,
see
Dynamic Variable Concepts.
If you have multiple
dynamic variables, you can either specify variables in multiple DYNAMIC
statements or specify all of your variables in a single DYNAMIC statement.
For example, the following statement specifies two variables.
dynamic V1="cholesterol" EXAMPLESV="Cholesterol";
As an alternative, you
can specify the dynamic variables in multiple DYNAMIC statements.
dynamic V1="cholesterol";
dynamic EXAMPLESV="Cholesterol";