The SGDESIGN Procedure |
Procedure features: | DYNAMIC statement |
This example substitutes a different column by setting the dynamic V1 variable. The example assumes the following:
the existence of a shared-variable graph named SVHistogram.sgd that was created based on the SASHELP.CARS data set
in the SGD file, the shared variable V1 is set to MPG_HIGHWAY
First, create the graph using the default data. You generate this graph only for comparison purposes.
proc sgdesign sgd="SVHistogram.sgd"; run;
Now create the graph and specify a different column for the dynamic variable.
proc sgdesign sgd="SVHistogram.sgd"; dynamic V1="MPG_City"; run;
When you use the SGDESIGN procedure to substitute columns, the columns can be different as long as they are the same type. In the example, both MPG_City and MPG_HIGHWAY are numeric columns.
You can also create the graph using a different data set.
proc sgdesign sgd="c:\SVHistogram.sgd" data=sashelp.heart; dynamic V1="Cholesterol"; run;
The third instance of the procedure uses a different data set that has different variables. In the example, Cholesterol is a numeric column.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.