Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
PROC SHEWHART and General Statements

Dictionary of Options

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

ANNOTATE=SAS-data-set
ANNO=SAS-data-set
[Graphics]
specifies an input data set containing Annotate variables as described in SAS/GRAPH Software: Reference. You can use this data set to add features to primary charts produced on graphics devices; use this data set only when the chart is created using a graphics device; it is ignored when then LINEPRINTER option is specified. 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
[Graphics]
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.

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 HISTORY= or a TABLE= data set. If you do not specify one of these three 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" section in the chapter for the chart statement you are using.

FORMCHAR(index)='string'
[Line Printer]
defines characters used for features on charts produced on a line printer, 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
1vertical barframe
2horizontal barframe, central line
3box character (upper left)frame
4box character (upper middle)serifs, tick (horizontal axis)
5box character (upper right)frame
6box character (middle left)not used
7box character (middle middle)serifs
8box character (middle right)tick (vertical axis)
9box character (lower left)frame
10box character (lower middle)serifs
11box character (lower right)frame
12vertical barcontrol limits
13horizontal barcontrol limits
14box character (upper right)control limits
15box character (lower left)control limits
16box character (lower right)control limits
17box 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 allows 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
[Graphics]
specifies the graphics catalog for graphics output from PROC SHEWHART. This is useful if you want to save the output. The GOUT= option is used only when the chart is created using a graphics device; it is ignored when the LINEPRINTER option is specified.

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 PROC MEANS.

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 with a DATA= or a TABLE= data set. If you do not specify one of these three 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" section in the chapter 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. For details about the variables needed in a LIMITS= data set, see the "LIMITS= Data Set" section in the chapter for the chart statement you are using.

LINEPRINTER
requests that line printer charts be produced. By default, the procedure creates charts for a graphics device.

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 with a DATA= or a HISTORY= data set. If you do not specify one of these three 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" section in the chapter for the chart statement that you are using.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.