![]() Chapter Contents |
![]() Previous |
![]() Next |
PROC CAPABILITY and General Statements |
The following variables are read from a SPEC= data set:
Variable | Description |
_LSL_ | lower specification limit |
_TARGET_ | target value |
_USL_ | upper specification limit |
_VAR_ | name of the variable |
You may omit either _LSL_ or _USL_ but not both. _TARGET_ is optional. If the SPEC= data set contains both _LSL_ and _USL_, you can assign missing values to _LSL_ or _USL_ to indicate one-sided specifications. You can assign missing values to _TARGET_ when the variable does not use a target value. _LSL_, _USL_, and _TARGET_ must be numeric variables. _VAR_ must be a character variable.
If you are using the HISTOGRAM statement to create "clickable" histograms in HTML, you can also provide the following variables in a SPEC= data set:
Variable | Description |
_LOURL_ | URL associated with area to left of lower specification limit |
_HIURL_ | URL associated with area to right of upper specification limit |
_URL_ | URL associated with area between specification limits |
These are character variables whose values are Uniform Resource Locators (URLs) linked to areas on a histogram. When you view the ODS HTML output with a browser, you can click on an area, and the browser will bring up the page specified by the corresponding URL.
If you use a BY statement, the SPEC= data set must also contain the BY variables. The SPEC= data set must be sorted in the same order as the DATA= data set. Within a BY group, specification limits for each variable plotted are read from the first observation where _VAR_ matches the variable name.
See the "Examples" section for an example of reading specification limits from a SPEC= data set.
Information contained in the ANNOTATE= data set specified in the PROC CAPABILITY statement is used for all plots produced in a given PROC step; this is a "global" ANNOTATE= data set. By using this global data set, you can keep information common to all high-resolution plots in one data set.
Information contained in the ANNOTATE= data set specified in a plot statement is used for plots produced by that statement; this is a "local" ANNOTATE= data set. By using this data set, you can add statement-specific features to plots. For example, you can add different features to plots produced by the HISTOGRAM and QQPLOT statements by specifying an ANNOTATE= data set in each plot statement.
In addition, you can specify an ANNOTATE= data set in the PROC CAPABILITY statement and in plot statements. This allows you to add some features to all plots (those given in the data set specified in the PROC statement) and also add statement-specific features to plots (those given in the data set specified in the plot statement).
For complete details on the structure and content of Annotate type data sets, see SAS/GRAPH documentation.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.