Previous Page | Next Page

The SGDESIGN Procedure

Example 3: Use the DYNAMIC Statement to Specify a Column


Procedure features: DYNAMIC statement

This example substitutes a different column by setting the dynamic V1 variable. The example assumes the following:

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.

Previous Page | Next Page | Top of Page