Previous Page | Next Page

The SGDESIGN Procedure

Example 1: Create a Graph and Subset the Data


Procedure features: WHERE statement, ODS output

This example uses a WHERE statement to subset the data. The example assumes the existence of a graph named CarsLattice.sgd that was created based on the SASHELP.CARS data set.

ods html file="CarsLattice.html";
proc sgdesign sgd="CarsLattice.sgd"
   data=sashelp.cars; 
   where Origin="Asia";
run;
ods html close;

Note:   Although a data set has already been defined for the SGD file, you must specify the data set in the procedure when you use the WHERE statement.  [cautionend]

Previous Page | Next Page | Top of Page