The SPC Procedure

Example 20.1 Saving Results in Output Data Tables

The following statements perform and R chart analysis on the data table mycas.AllProcesses that is created in the section Getting Started: SPC Procedure and save the results in OUTTABLE= and OUTLIMITS= data tables:

proc spc data=mycas.AllProcesses;
   xrchart / noprint
             outtable  = mycas.AllTable
             outlimits = mycas.AllLimits;
run;

The NOPRINT option suppresses the display of the exception summary table. Output 20.1.1 shows a partial listing of the mycas.AllTable data table.

Output 20.1.1: Partial Listing of the mycas.AllTable Data Table

_VAR_subgroupnamesubgroup_SIGMAS__LIMITN__SUBN__LCLX__SUBX__MEAN__UCLX__STDDEV__EXLIM__LCLR__SUBR__R__UCLR__EXLIMR_
TimeLot13667.943148.008338.003078.062990.048927 00.160.1240.24847 
TimeLot23667.943148.021678.003078.062990.048927 00.090.1240.24847 
TimeLot33667.943147.978338.003078.062990.048927 00.070.1240.24847 
TimeLot43667.943148.006678.003078.062990.048927 00.100.1240.24847 
TimeLot53667.943148.018338.003078.062990.048927 00.160.1240.24847 
TimeLot63667.943148.006678.003078.062990.048927 00.120.1240.24847 
TimeLot73667.943147.985008.003078.062990.048927 00.150.1240.24847 
TimeLot83667.943148.030008.003078.062990.048927 00.110.1240.24847 
TimeLot93667.943148.030008.003078.062990.048927 00.150.1240.24847 
TimeLot103667.943147.991678.003078.062990.048927 00.100.1240.24847 


Output 20.1.2 displays the mycas.AllLimits data table.

Output 20.1.2: mycas.AllLimits Data Table

processnamesubgroupname_SIGMAS__LIMITN__LCLX__MEAN__UCLX__STDDEV__LCLR__R__UCLR__TYPE_
TimeLot367.948.008.060.0490.0000.1240.25ESTIMATE
DiameterBatch3534.9834.9935.010.0100.0000.0220.05ESTIMATE
PartgapSample35241.94260.00278.0513.4540.00031.29366.17ESTIMATE
BreakstrengthSample3VV59.98V2.111VVVESTIMATE
AmountBatch3VV11.98V0.044VVVESTIMATE
DelayDay3VV9.53V8.512VVVESTIMATE
KWattsDay3203362.103497.563633.02201.937312.779754.2251195.67ESTIMATE
WeightLot3521.4924.6127.742.3300.0005.42011.46ESTIMATE


Note that limits variables for three of the processes have the special missing value V, because the data for those processes have varying subgroup sample sizes.

The mycas.AllLimits data table has the same format as a LIMITS= data table, so it could provide limits for these processes in a later run of PROC SPC.

Last updated: December 21, 2018