The SPC Procedure

PROC SPC Statement

  • PROC SPC <options>;

The PROC SPC statement is required in order to invoke the SPC procedure. By itself, it does not perform any statistical process control analysis.

You can specify the following options in the PROC SPC statement:

DATA=CAS-libref.data-table

names the input data table for PROC SPC to use. The default is the most recently created data table. CAS-libref.data-table is a two-level name, where

CAS-libref

refers to a collection of information that is defined in the LIBNAME statement and includes the caslib, which includes a path to the data, and a session identifier, which defaults to the active session but which can be explicitly defined in the LIBNAME statement. For more information about CAS-libref, see the section Using CAS Sessions and CAS Engine Librefs.

data-table

specifies the name of the input data table.

For more information, see the section DATA= Data Table.

LIMITS=CAS-libref.data-table

names an input data table that contains preestablished control limits or the parameters from which control limits can be computed. Each observation in a LIMITS= data table provides control limit information for a process. CAS-libref.data-table is a two-level name, where CAS-libref refers to the caslib and session identifier, and data-table specifies the name of the input data table. For more information about this two-level name, see the DATA= option and the section Using CAS Sessions and CAS Engine Librefs.

You can create this data table as an OUTLIMITS= data table in a previous run of PROC SPC. For more information, see the section LIMITS= Data Table.

NTHREADS=n

specifies the number of threads per node to be used to perform the analysis. You can specify a number between 1 and 64, inclusive. By default, n is the maximum number of threads available on each node.

PROCESSNAME=variable

specifies the variable in the input data table that contains the names of processes to be analyzed. Each unique combination of process name and subgroup name in the input data table identifies the data for one control chart. By default, PROC SPC looks for a variable named ProcessName that contains the process names.

PROCESSVALUE=variable

specifies the variable in the input data table that contains the process measurements to be analyzed. By default, PROC SPC looks for a variable named Process that contains the process measurements.

SUBGROUPNAME=variable

specifies the variable in the input data table that contains the names of subgroup variables. Each unique combination of process name and subgroup name in the input data table identifies the data for one control chart. By default, PROC SPC looks for a variable named SubgroupName that contains the subgroup variable names.

SUBGROUPVALUE=variable

specifies the variable in the input data table that contains the subgroup values. Subgroup values identify rational subgroups for control chart analysis. By default, PROC SPC looks for a variable named Subgroup that contains the subgroup values.

Last updated: December 21, 2018