In the first block, read the report file, analyze the report to identify the grand totals line, and extract grand totals for the QNTY AVAIL, QNTY ORDER and TOTAL QNTY columns into the variables QNTY1, QNTY2 and QNTY3, respectively.
In the second block, verify that QNTY1 + QNTY2 = QNTY3. If it does not, perform the actions listed in Rule 1A.