Read a report in Page mode (PG) from a file referenced by the SYSUT2 DD statement.
When column 48 is a hyphen, extract the employee details (number, name, and office number) and the specific fields to be checked (annual salary, sick days, vacation days).
Call the CHECK block to determine if the extracted quantities are reasonable. The CHECK block is written at the end of the rule but is executed now because it is called by DO BLOCK.
If the error counter is more than zero:
If the error counter is zero:
Note: It is important to terminate this block explicitly in case of OK and NOTOK to prevent calling the CHECK block one time too many.
If a problem is found, print a message and increment the error counter.
Note: The CHECK block appears at the end of the rule but is executed now for each employee line because it is called by the DO BLOCK statement.
Parent Topic |