User's Manual

Using logical processing
Using LCDS Print Description Language 3-17
Options
Default No default
CRITERIA
CONSTANT
parameter syntax
example
The following CRITERIA command syntax diagram describes a
test for a subfield equal to a specific constant table.
criid: CRITERIA CONSTANT=(offset, length, EQ, tabid);
In the above syntax, the CONSTANT parameter specifies that
the content of a record is to be compared to the values that were
specified in a TABLE command with identifier tabid. Refer to the
“TABLE command” section in this chapter for an explanation of
the tabid parameter.
The subfield that will be compared is located the number of bytes
indicated by the offset variable from the start of the user portion
of the record. The subfield has a length the number of bytes
indicated in the length variable. When the subfield in the record
matches a constant in the table, the CRITERIA command is
TRUE and the processing specified by the parameter is
completed or acted upon.
CRITERIA LINENUM
Specifies the range of consecutive line numbers for which the
CRITERIA command is fully evaluated.
Syntax CRITERIA LINENUM = (init, count)
Table 3-9. CRITERIA CONSTANT parameter options and definitions
Option Definition
offset The offset in bytes (relative to zero) from the start of the user portion of the
record to the field in the record being compared.
length The length in bytes of the test field. Its range is 1 to 255.
EQ Indicates the operation EQUAL TO.
NE Indicates “not equal to.”
tabid table identifier.
The identifier of a table, specified in the TABLE command, that contains the
constant to which the test field is compared.