SPEC Statement

The syntax for the SPEC statement is as follows:

SPEC <options> ;

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. The section Summary of Options, which follows, lists all options by function. The section Dictionary of Options describes each option in more detail.

Summary of Options

The following tables list the SPEC statement options by function. For complete descriptions see the section Dictionary 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

Dictionary of Options

The following entries provide detailed descriptions of options for the SPEC statement. The notes Traditional Graphics, ODS Graphics, and Line Printer identify options that can be used with traditional graphics, ODS Graphics output, and line printer plots, respectively.

CLEFT=color
CLEFT

[Traditional Graphics][ODS Graphics] 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.

CLSL=color

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

CRIGHT=color
CRIGHT

[Traditional Graphics][ODS Graphics] 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.

CTARGET=color

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

CUSL=color

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

LLSL=linetype

[Traditional Graphics] 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.

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.

LSLSYMBOL=’character

[Line Printer] 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'.

LTARGET=linetype

[Traditional Graphics] 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

[Traditional Graphics] 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

[Traditional Graphics] 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

[Traditional Graphics] 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.

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.

TARGETSYMBOL='character'
TARGETSYM='character'

[Line Printer] 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'.

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.

USLSYMBOL='character'

[Line Printer] 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'.

WLSL=

[Traditional Graphics] 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=

[Traditional Graphics] 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=

[Traditional Graphics] 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.