PROC CAPABILITY and General Statements

SPEC Statement

The syntax for the SPEC statement is as follows:

You can use at most one SPEC statement in the CAPABILITY procedure. When you provide specification limits and target values in a SPEC statement, the tabular output produced by the PROC CAPABILITY statement includes process capability indices as well as summary statistics. You can use the SPEC statement in conjunction with the CDFPLOT , COMPHISTOGRAM , HISTOGRAM , PROBPLOT , and QQPLOT statements to add specification limit and target lines to the plots produced with these statements.

options

control features of the specification limits and target values. Table 5.3 lists all options by function.

Summary of Options

Table 5.3: SPEC Statement Options

Option

Description

Lower Specification Limit Options

CLEFT=

color used to fill area left of lower specification limit (histograms only)

CLSL=

color of lower specification limit line

LLSL=

line type of lower specification limit line

LSL=

lower specification limit values

LSLSYMBOL=

character used for lower specification limit line in line printer plots

PLEFT=

pattern type used to fill area left of lower specification limit (histograms only)

WLSL=

width of lower specification limit line

Target Options

CTARGET=

color of target line

LTARGET=

line type of target line

TARGET=

target value

TARGETSYMBOL=

character used for target in line printer plots

WTARGET=

width of target line

Upper Specification Limit Options

CRIGHT=

color used to fill area right of upper specification limit (histograms only)

CUSL=

color of upper specification limit line

LUSL=

line type of upper specification limit line

PRIGHT=

pattern type used to fill area right of upper specification limit (histograms only)

USL=

upper specification limit values

USLSYMBOL=

character used for upper specification limit in line printer plots

WUSL=

width of upper specification limit line


General Options

You can specify the following options whether you are producing ODS Graphics output or traditional graphics:

CLEFT=color
CLEFT

determines the color used to fill the area under a histogram to the left of the lower specification limit. You can specify the CLEFT option without an argument to fill this area with an appropriate color from the ODS style. If you are producing ODS Graphics output, an explicit color specification is ignored. This option is applicable only when the SPEC statement is used in conjunction with a HISTOGRAM or COMPHISTOGRAM statement. See Output 5.2.1 for an example. The CLEFT= option also applies to the area under a fitted curve;for an example, see Output 5.8.1.

CRIGHT=color
CRIGHT

determines the color used to fill the area under a histogram to the right of the upper specification limit. You can specify the CRIGHT option without an argument to fill this area with an appropriate color from the ODS style. If you are producing ODS Graphics output, an explicit color specification is ignored. This option is applicable only when the SPEC statement is used in conjunction with a HISTOGRAM or COMPHISTOGRAM statement. See Output 5.2.1 for an example. The CRIGHT= option also applies to the area under a fitted curve; for an example, see Output 5.8.1.

LSL=value-list

specifies the lower specification limits for the variables listed in the VAR statement, or for all numeric variables in the input data set if no VAR statement is used. If you specify only one lower limit, it is used for all of the variables; otherwise, the number of limits must match the number of variables. See the section Computing Capability Indices for an example.

TARGET=value-list

specifies target values for the variables listed in the VAR statement, or for all numeric variables in the input data set if no VAR statement is used. If you specify only one target value, it is used for all of the variables; otherwise, the number of values must match the number of variables. See the section Computing Capability Indices for an example.

USL=value-list

specifies the upper specification limits for the variables listed in the VAR statement, or for all numeric variables in the input data set if no VAR statement is used. If you specify only one upper limit, it is used for all of the variables; otherwise, the number of limits must match the number of variables. See the section Computing Capability Indices for an example.

Options for Traditional Graphics

You can specify the following options if you are producing traditional graphics:

CLSL=color

specifies the color of the lower specification line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements.

CTARGET=color

specifies the color of the target line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements.

CUSL=color

specifies the color of the upper specification line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements.

LLSL=linetype

specifies the line type for the lower specification line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an example. The default is 1, which produces a solid line.

LTARGET=linetype

specifies the line type for the target line in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an example. The default is 1, which produces a solid line.

LUSL=linetype

specifies the line type for the upper specification line displayed in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an example. The default is 1, which produces a solid line.

PLEFT=pattern

specifies the pattern used to fill the area under a histogram to the left of the lower specification limit. This option is applicable only when the SPEC statement is used in conjunction with a HISTOGRAM or COMPHISTOGRAM statement. For an example, see Output 5.2.1. The PLEFT= option also applies to the area under a fitted curve; for an example, see Output 5.8.1. The default pattern is a solid fill.

PRIGHT=pattern

specifies the pattern used to fill the area under a histogram to the right of the upper specification limit. This option is applicable only when the SPEC statement is used in conjunction with a HISTOGRAM or COMPHISTOGRAM statement. For an example, see Output 5.2.1. The PRIGHT= option also applies to the area under a fitted curve; for an example, see Output 5.8.1. The default pattern is a solid fill.

WLSL=n

specifies the width in pixels of the lower specification line in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an illustration. The default is 1.

WTARGET=n

specifies the width in pixels of the target line in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an illustration. The default is 1.

WUSL=n

specifies the width in pixels of the upper specification line in plots created with the CDFPLOT, COMPHISTOGRAM, HISTOGRAM, PROBPLOT, and QQPLOT statements. See Output 5.2.1 for an illustration. The default is 1.

Options for Legacy Line Printer Plots

You can specify the following options if you are producing legacy line printer plots:

LSLSYMBOL='character'

specifies the character used to display the lower specification line in line printer plots created with the CDFPLOT, HISTOGRAM, PROBPLOT, and QQPLOT statements. The default character is 'L'.

TARGETSYMBOL='character'
TARGETSYM='character'

specifies the character used to display the target line in line printer plots created with the CDFPLOT, HISTOGRAM, PROBPLOT, and QQPLOT statements. The default character is 'T'.

USLSYMBOL='character'

specifies the character used to display the upper specification line in line printer plots created with the CDFPLOT, HISTOGRAM, PROBPLOT, and QQPLOT statements. The default character is 'U'.