Use the options located at the top of the Template Editor to identify if the currently selected template will be used to access segmented data. Also, if your template contains more than one record layout, use the drop-down box to select which record layout to edit.
Entering a value for the offset alters the starting position of the currently selected record type in relation to the actual record data. If an offset value is entered, it will be added to the record length of the Level 01 field and to the starting position of all fields within the record type. The offset value entered must be within the range of -32760 to 32760.
| Freeform REXX expression | Description |
|---|---|
| #ref | A field that returns a value from the current record layout to be used in the expression. Fields are identified using the # symbol, followed by the field reference number, for example #8. You can also use the value returned by performing a calculation with a number of fields, for example (#5 + #6). To do this, you must embed the calculation within parentheses and use valid arithmetic operators, together with at least one field reference. Another alternative is to use a REXX function that lists at least one field as an argument, for example MAX(#5,#6,#7). |
| comp-op | Comparison Operator. A symbol that expresses the way in which the value derived from the field or field calculation is to be compared with value. For example, the ″>″ symbol represents ″is greater than″. File Manager Integration supports all REXX comparison operators. |
| value | Any expression that returns a single value to be used in the criteria expression. This can take the form of a string, a numeric value, a field, a calculation that returns a value, or a REXX function. |
Logical operators, such as AND (&) and OR (|) can be used to create multiple criteria expressions. Parentheses can be used to control the order of evaluation in calculations and criteria expressions.
The other option is to use the "by-field" Build Criteria editor. The Build Criteria editor makes constructing record criteria easy by using a more structured approach. Using the Build Criteria editor, you can construct complex expressions from a list of fields, comparison operators, AND/OR connectors, and value expressions. The Build Criteria editor can be accessed by selecting the button labeled Build Criteria located after each freeform criteria text entry location.
The process can end here or you can continue to enhance your criteria by utilizing the logical AND/OR connectors located at the bottom of the editor to combine multiple criteria into complex expressions. Use the buttons labeled Up and Down to rearrange the order of your expressions.
