Rule 1A Logic
In the first block, read the report from the file, identify the grand totals line, and extract the total at the bottom of the TOTAL QNTY column.
In the second block, verify that the extracted number is larger than 1000. If it is, perform the following actions:
Print the extracted quantity to the balancing report.
Terminate the rule OK with a condition code of 0.
If it is not, perform the following actions:
Print an error message to the balancing report
Shout a message to a TSO userid
Terminate the rule NOTOK with a condition code of 555
Parent Topic
Solveware Rule Documentation