Oce XDL Reference Manual page 147

Lcds-module xdl/djde
Table of Contents

Advertisement

Using Logical Processing
Constant mode
In the constant mode, the user must specify the location, length, and contents of a fixed field
within a user's record or block. Each user's record or block is examined at the specified lo-
cation to determine if the constant is present (the identifier tab-id defines the table contain-
ing the constant). If present, the CRITERIA command is true; if not, the command is false.
A constant mode CRITERIA command can be coded as follows:
cri-id: CRITERIA CONSTANT= (offset,length,EQ | NE,tab-id)
LINENUM=(init,count);
Note: length must be the same as length of string in the TABLE CONSTANT.
Change mode
In change mode, the user must specify the length and location of a control field in each
record or block. When the content of the control field of one record (or block) differs from
the content of the control field of the previous record (or block), the CRITERIA command is
true.
A change mode CRITERIA command can be coded as follows:
cri-id:CRITERIA
CHANGE=(offset,length,NE,LAST),
LINENUM=(init,count);
LINENUM parameter
The LINENUM parameter of a CRITERIA command specifies that only a subset of a re-
port's data records are to be tested for the user-defined criteria. This subset is specified as
a set of continuous line numbers for a page. If the carriage control specification for a given
record is such that the record is placed within the set of lines specified by LINENUM, the
record is examined according to the CRITERIA command. Otherwise, it is not processed.
Combining change and constant modes
The CRITERIA tables may specify either change mode or constant mode functions; there
are no restrictions on their usage or combination.
There are two special cases: when the record or block is too short to include the field being
tested and when the line being tested contains no record, that is, it has been skipped. If the
test specifies a constant mode function, the CRITERIA fails.
A29247-X4-X-8-7672
CRITERIA Command
139

Advertisement

Table of Contents
loading

This manual is also suitable for:

DjdePrismaproduction server v3.10

Table of Contents