Defining triggers

ACIF uses one or more triggers to determine where to begin to locate index values

For the income statement report, define five triggers:
  • A trigger that instructs ACIF to examine the first byte of every input record for the presence of an EBCDIC skip-to-channel one carriage control character (X'F1'). This is the TRIGGER1 record.
  • A trigger that instructs ACIF to examine every input record for the string Income Statement beginning in column two of the record following the TRIGGER1 record. This trigger, along with TRIGGER1, uniquely identifies the start of a statement in the report.
  • A trigger that instructs ACIF to locate the string Total Income starting in column 31 of the seventh or eighth record following the TRIGGER1 record. The trigger string value can occur in one of two records because it follows the address, which may contain three or four lines.
  • A trigger that instructs ACIF to locate the string Type of Income starting in column 5 of any record in the group. A statement can contain one or more types of income, there may be several records that contain this trigger string value. ACIF should collect all income types for each group.
  • A trigger that instructs ACIF to locate the string Subtotal starting in column 5 of any record in the group. A subtotal value is associated with a type of income, so ACIF should collect all the subtotals for each group.