Xerox 701P21091 manual String comparisons

Models: 701P21091

1 498
Download 498 pages 22.54 Kb
Page 191
Image 191

Using logical processing

The criid1 and criid2 are the identifiers for two CRITERIA commands. The parentheses in this format are required.

For example, the following three commands specify that a record should be selected (RSELECT parameter) if a particular field is equal to a given string constant (sc):

T1: TABLE

CONSTANT =(sc);

C1: CRITERIA CONSTANT =(offset,length,EQ,T1);

RSELECT TEST=(C1);

NOTE: A compiler error occurs if you attempt an AND test on two different criteria that appear on two line ranges that do not overlap. For example, a logic problem occurs with the ROFFSET command if Criterion 1 is limited to line 3, and Criterion 2 is limited to line 2. In this scenario both criteria could never be satisfied on the same line.

Specifying the The LINENUM parameter of a CRITERIA command specifies CRITERIA that only a subset of the data record in a report will be tested for LINENUM the user defined criteria. This subset is specified as a set of parameter contiguous line numbers for a logical page. If the carriage control

specification for a given record places the record within the set of lines specified by LINENUM, the record is examined according to the CRITERIA command. Otherwise, it is not processed.

String comparisons

String comparisons for logical processing are specified using the CRITERIA and TABLE commands. These comparisons test for one of the following conditions:

Absolute equality: Tested by either a Change mode CRITERIA command or by a Constant mode CRITERIA command which references a TABLE command that does not have a MASK parameter coded (refer to processing sequence 1 in the figure titled “Commands that specify string comparisons”).

Equality under a mask: Tested when the referenced TABLE command has a MASK parameter coded (refer to processing sequence 2 in the following figure).

Comparing strings for equality under a mask means that the user has specified, for each character position of the input data string, that the test performed is one of the following:

Using LCDS Print Description Language

3-11

Page 191
Image 191
Xerox 701P21091 manual String comparisons