Previous Topic

Next Topic

Book Contents

Book Index

In the INPUT block:

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 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

Rule Logic