Using logical processing

Options

Table 3-8. CRITERIA CHANGE 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 control field within the record.

 

 

 

 

 

length

 

The length in bytes of the control field. Its range is 1 to 255.

 

 

 

 

 

NE

 

Indicates “not equal to.”

 

 

 

 

 

LAST

 

Indicates that the control field of the current record is being compared to

 

 

 

the control field of the previous (last encountered) record. If a control field

 

 

 

of the current record is less than the specified length, the comparison is

 

 

 

not done and the test fails.

 

 

 

 

Default

No default

CRITERIA

• In online jobs, the host truncates trailing blanks. You may add

CHANGE

 

blank character spaces to any control fields that are shorter

parameter: points

 

than the specified length, so the system can make a

to note

 

comparison.

• The data field contents are not interpreted as a number, but as individual bytes of data. Therefore, comparison of the numeric values of two data fields is not relevant. (For example, “2.00” does not equal “2.000.”) Use the VALUE parameter to perform this kind of comparison.

• When Change Mode CRITERIA commands are evaluated, a string from the current line is compared with a string saved from the corresponding part of a previous line. (Refer to “String comparisons” in this chapter for information on use of strings in logical processing commands.

– If the comparison is not equal, the string from the current line becomes the saved comparison string for subsequent lines and the criteria is considered true.

– If two records are overprinted on the same line but with different data in the field defined by the CRITERIA command, the string from the last overprint record becomes the saved comparison string and the CHANGE CRITERIA is satisfied.

Using LCDS Print Description Language

3-15

Page 195
Image 195
Xerox 701P21091 manual Options Criteria Change parameter options and definitions, Not done and the test fails