Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
PROC CUSUM Statement

Syntax


The syntax for the PROC CUSUM statement is as follows:

PROC CUSUM < options >;


The PROC CUSUM statement starts the CUSUM procedure, and it optionally identifies various data sets and requests graphics output. You can specify the following options in the PROC CUSUM statement.


ANNOTATE=SAS-data-set
ANNO=SAS-data-set
[Graphics]
specifies an input data set that contains appropriate annotate variables, as described in SAS/GRAPH Software: Reference. The ANNOTATE= option allows you to add features to the cusum chart (for example, labels that explain out-of-control points). The ANNOTATE= data set is used only when the chart is created using a graphics device; it is ignored when the LINEPRINTER option is specified. The data set specified with the ANNOTATE= option in the PROC CUSUM statement is a "global" annotate data set in the sense that the information in this data set is displayed on every chart produced in the current run of the CUSUM procedure.

ANNOTATE2=SAS-data-set
ANNO2=SAS-data-set
[Graphics]
specifies an input data set that contains appropriate annotate variables that add features to the trend chart (secondary chart) produced with the TRENDVAR= option in the XCHART statement.

DATA=SAS-data-set
names an input data set that contains raw data (measurements) as observations. 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). The DATA= data set can contain more than one observation for each value of the subgroup-variable.

You cannot use a DATA= data set with a HISTORY= data set. If you do not specify a DATA= or HISTORY= data set, PROC CUSUM uses the most recently created data set as a DATA= data set. For more information, see "DATA= Data Set" .

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. The list identifies which features are controlled with the string characters. By default, index is omitted, and the FORMCHAR= option gives a string for all 17 features.

string
gives characters for features in index. Any character or hexadecimal string can be used.

The features associated with values of index are as follows:

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 the characters in the preceding list. By default, the form character list specified by the SAS system option FORMCHAR= 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 you can use the FORMCHAR= option to temporarily override the values of the SAS system FORMCHAR= option. The values of the SAS system FORMCHAR= option are not altered by the FORMCHAR= option in the PROC CUSUM statement.

GOUT=graphics-catalog
[Graphics]
specifies the graphics catalog for graphics output from PROC CUSUM. 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 (means, standard deviations, and sample sizes). Typically, this data set is created as an OUTHISTORY= data set in a previous run of PROC CUSUM or PROC SHEWHART, but it can also be created with a SAS summarization procedure such as PROC MEANS.

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). A 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 DATA= data set. If you do not specify a HISTORY= or DATA= data set, PROC CUSUM uses the most recently created data set as a DATA= data set. For more information on HISTORY= data sets, see "HISTORY= Data Set" .


LIMITS=SAS-data-set
names an input data set that contains a set of decision interval or V-mask parameters. Each observation in a LIMITS= data set contains the parameters for a process.

If you are using Release 6.09 or an earlier release of SAS/QC software, you must specify the options READLIMITS or READINDEX= in the XCHART statement to read the parameters from the LIMITS= data set. In Release 6.10 and later releases, these options are not needed.

For details about the variables needed in a LIMITS= data set, see "LIMITS= Data Set" . If you do not provide a LIMITS= data set, you must specify the parameters with options in the XCHART statement.

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


Input and Output Data Sets

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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