Dictionary of Options

The following entries provide detailed descriptions of options in the PROC SHEWHART statement.

ANNOTATE=SAS-data-set
ANNO=SAS-data-set

specifies an input data set containing Annotate variables as described in SAS/GRAPH: Reference. You can use this data set to add features to traditional graphics. Use this data set only when creating traditional graphics. This option is ignored if ODS Graphics is enabled or if you specify the LINEPRINTER option. Features provided in this data set are displayed on every chart produced in the current run of PROC SHEWHART.

ANNOTATE2=SAS-data-set
ANNO2=SAS-data-set

specifies an input data set that contains annotate variables. You can use this data set to add features to the secondary chart in statements that produce two charts (the IRCHART, MRCHART, XRCHART, and XSCHART statements and, when you specify the TRENDVAR= option, the BOXCHART, MCHART, and XCHART statements). The restrictions and features are the same as those for the ANNOTATE= option.

BOX=SAS-data-set

names an input data set that contains subgroup summary statistics, control limits, and outlier values in strung out form, with more than one observation per subgroup. Each observation corresponds to one feature of one subgroup’s box-and-whisker plot. Typically, this data set is created as an OUTBOX= data set in a previous run of PROC SHEWHART with a BOXCHART statement. The BOX= data set is the only kind of summary data set you can use to produce schematic box-and-whisker plots. The BOXCHART statement is the only chart statement you can use with a BOX= input data set.

You cannot use a BOX= data set together with a DATA=, HISTORY=, or TABLE= data set. If you do not specify one of these four input data sets, PROC SHEWHART uses the most recently created data set as a DATA= data set.

DATA=SAS-data-set

names an input data set that contains raw data as observations. Note that the DATA= data set may need sorting. If the values of the subgroup-variable are numeric, you must sort the data set so that these values are in increasing order (within BY groups). Use PROC SORT if the data are not already sorted.

The DATA= data set may contain more than one observation for each value of the subgroup-variable. This happens, for example, when you produce a control chart for means and ranges with the XRCHART statement.

You cannot use a DATA= data set together with a BOX=, HISTORY=, or TABLE= data set. If you do not specify one of these four input data sets, PROC SHEWHART uses the most recently created data set as a DATA= data set. For more information, see the DATA= Data Set subsection in the section for the chart statement you are using.

FORMCHAR(index)='string'

defines characters used for features on legacy line printer charts, where index is a list of numbers ranging from 1 to 17, and string is a character or hexadecimal string. The index identifies which features are controlled with the string characters, as discussed in the following table. If you specify the FORMCHAR= option and omit the index, the string controls all 17 features.

Value of

   

index

Description of Character

Chart Feature

1

vertical bar

frame

2

horizontal bar

frame, central line

3

box character (upper left)

frame

4

box character (upper middle)

serifs, tick (horizontal axis)

5

box character (upper right)

frame

6

box character (middle left)

not used

7

box character (middle middle)

serifs

8

box character (middle right)

tick (vertical axis)

9

box character (lower left)

frame

10

box character (lower middle)

serifs

11

box character (lower right)

frame

12

vertical bar

control limits

13

horizontal bar

control limits

14

box character (upper right)

control limits

15

box character (lower left)

control limits

16

box character (lower right)

control limits

17

box character (upper left)

control limits

Not all printers can produce all the characters in the preceding list. By default, the form character list specified with the SAS system FORMCHAR= option is used; otherwise, the default is FORMCHAR='|—-|+|—|====='. If you print to a PC screen or if your device supports the ASCII symbol set (1 or 2), the following is recommended:

formchar='B3,C4,DA,C2,BF,C3,C5,B4,C0,C1,D9,BA,CD,BB,C8,BC,D9'X

Note that the FORMCHAR= option in the PROC SHEWHART statement enables you to override temporarily the values of the SAS system option of the same name. The values of the SAS system option are not altered by using the FORMCHAR= option in the PROC SHEWHART statement.

GOUT=graphics-catalog

specifies the graphics catalog for traditional graphics output from PROC SHEWHART. This is useful if you want to save the output. The GOUT= option is used only when creating traditional graphics. This option is ignored if ODS Graphics is enabled or if you specify the LINEPRINTER option.

HISTORY=SAS-data-set
HIST=SAS-data-set

names an input data set that contains subgroup summary statistics. For example, you can read sample sizes, means, and ranges for the subgroups to create $\bar{X}$ and R charts. Typically, this data set is created as an OUTHISTORY= data set in a previous run of PROC SHEWHART, but it can also be created using a SAS summarization procedure such as the MEANS procedure.

Note that the HISTORY= data sets may need sorting. If the values of the subgroup-variable are numeric, you need to sort the data set so that these values are in increasing order (within BY groups). Use PROC SORT if the data are not already sorted. The HISTORY= data set can contain only one observation for each value for the subgroup-variable.

You cannot use a HISTORY= data set together with a BOX=, DATA=, or TABLE= data set. If you do not specify one of these four input data sets, PROC SHEWHART uses the most recently created data set as a DATA= data set. For more information, see the HISTORY= Data Set subsection in the section for the chart statement you are using.

LIMITS=SAS-data-set

names an input data set that contains preestablished control limits or the parameters from which control limits can be computed. Each observation in a LIMITS= data set provides control limit information for a process. Typically, this data set is created as an OUTLIMITS= data set in a previous run of PROC SHEWHART.

If you omit the LIMITS= option, then control limits are computed from the data in the DATA= or HISTORY= input data sets or read from the BOX= or TABLE= input data sets. For details about the variables needed in a LIMITS= data set, see the LIMITS= Data Set subsection in the section for the chart statement you are using.

LINEPRINTER

requests that legacy line printer charts be produced. By default, PROC SHEWHART produces ODS Graphics output if ODS Graphics is enabled and traditional graphics output if ODS Graphics is disabled and SAS/GRAPH is licensed.

TABLE=SAS-data-set

names an input data set that contains subgroup summary statistics and control limits. Each observation in a TABLE= data set provides information for a particular subgroup and process. Typically, this data set is created as an OUTTABLE= data set in a previous run of PROC SHEWHART.

You cannot use a TABLE= data set together with a BOX=, DATA=, or HISTORY= data set. If you do not specify one of these four input data sets, PROC SHEWHART uses the most recently created data set as a DATA= data set. For more information, see the TABLE= Data Set subsection in the section for the chart statement that you are using.

TESTHTML=SAS-data-set

names an input data set for creating links associated with tests for special causes when traditional graphics output is directed into HTML. A TESTHTML= data set contains variables _TEST_, _CHART_, and _URL_. _TEST_ and _CHART_ are numeric variables identifying a test for special causes (1-8) and the primary or secondary chart (1 or 2). _URL_ is a character variable containing the HTML syntax to create links associated with subgroups for which the given test on the given chart is positive. This option is ignored if you are not producing traditional graphics. See the section Interactive Control Charts: SHEWHART Procedure for more information.

TESTURLS=SAS-data-set

names an input data set for associating URLs with tests for special causes when ODS Graphics output is directed into HTML. A TESTURLS= data set contains variables _TEST_, _CHART_, and _URL_. _TEST_ and _CHART_ are numeric variables identifying a test for special causes (1-8) and the primary or secondary chart (1 or 2). _URL_ is a character variable containing the URL to be associated with subgroups for which the given test on the given chart is positive. This option is ignored when ODS Graphics is disabled. See the section Interactive Control Charts: SHEWHART Procedure for more information.