14.03.2014 Views

Quality and Reliability Methods - SAS

Quality and Reliability Methods - SAS

Quality and Reliability Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

44 Statistical Control Charts Chapter 2<br />

Running Alarm Scripts<br />

Running Alarm Scripts<br />

If you want to run a script that alerts you when the data fail one or more tests, you can run an Alarm Script.<br />

As an Alarm Script is invoked, the following variables are available, both in the issued script <strong>and</strong> in<br />

subsequent JSL scripts:<br />

qc_col is the name of the column<br />

qc_test is the test that failed<br />

qc_sample is the sample number<br />

qc_firstRow is the first row in the sample<br />

qc_lastRow is the last row in the sample<br />

Example 1: Automatically writing to a log<br />

One way to generate automatic alarms is to make a script <strong>and</strong> store it with the data table as a Data Table<br />

property named QC Alarm Script. To automatically write a message to the log whenever a test fails,<br />

• Run the script below to save the script as a property to the data table,<br />

• Run a control chart,<br />

• Turn on the tests you're interested in. If there are any samples that failed, you'll see a message in the log.<br />

CurrentData Table()

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!