Triggers
Identifies locations and string values required to uniquely identify the beginning of a group and the locations and string values of fields that are used to define indexes.
You must define at least one trigger and can define up to 144 triggers.
Syntax
TRIGGERn=record,column,value,(TYPE=type)
Options and values
- n
- The trigger parameter that is identified. When you add a trigger parameter, use the next
available number beginning with
1
. - record
- The input record where the 390 indexer locates
the trigger string value. A record value of
*
(asterisk) indicates that the 390 indexer searches every input record for the trigger string value. For TRIGGER1 the input record must be*
(asterisk). When a number is specified, the number is relative to the first line of the current page. The supported range of record numbers is0
(the first line of the page) to255
. - column
- The beginning column where the 390 indexer locates the trigger string value. The supported range of column numbers is 1 to 32756. If you specify an * (asterisk) or 0, the 390 indexer scans the record from left to right and searches for the trigger string value. A value of 1 refers to the first byte of the record, where the carriage control characters reside.
- value
- The string value that the 390 indexer uses to match the input data. It is recommended that you enter this value as a hexadecimal string.
- TYPE=type
- The trigger type. The default trigger type is group. TRIGGER1 must be a group trigger.
Valid trigger types are:
- GROUP
- Triggers that identify the beginning of a group. Triggers are values that must match
the values on a page for that page to be identified as the first page of a new document.
You can also use the INDEXn parameter with
BREAK=YES
to identify the start of a new document. This indicates values on a page that must change to identify that page as the start of a new document. - FLOAT
- Triggers that are used to locate index values that do not necessarily occur in the same
location on each page. FLOAT triggers can use a value of
*
(asterisk) or a number for either the record or column values.