# 3.6.4.36 QCLines (macro)

Draws, names, and labels three horizontal lines (in the active graph window) at Y = Ave = average, Y = UCL, and Y = LCL. This macro is used by the QC.OTW worksheet template which is used to create QC charts. The value Ave is passed as a parameter to the QCLines macro and the values UCL and LCL are normally calculated by invoking Plot:Statistical Graphs:QC (X bar R) Chart menu command.

## Definition:

Def  QCLines {
Ave = %1;
OneQCLine Ave;
OneQCLine UCL;
OneQCLine LCL;
};

## Example:

The following example draws, names, and labels (in the active graph window) three horizontal lines at Y = 1, 4 and 6.

UCL=6;
LCL=4;
QCLines 1;