Oce XDL Reference Manual page 154

Lcds-module xdl/djde
Table of Contents

Advertisement

TABLE Command
The characters used in the MASK parameter occupy numbered positions, beginning with
0, separated by commas. These position numbers in the MASK parameter are used as type
numbers. Therefore, the mask character to type associations listed are made for the above
TABLE command.
Character
?
%
@
The data string characters in the positions corresponding to those occupied by @ in the
CONSTANT parameter are tested for type 2 (in the example, alphabetic A-Z or a-z). Char-
acters corresponding positionally with a % are tested for type 1 (numeric, 0-9). If the string
specified in the CONSTANT parameter included a ?, the corresponding data character from
the input stream is considered equal without any comparison being made, because it is an
ignore type mask character.
Example 3
If the TABLE command in example 2 were changed to:
T2: TABLE MASK=('?','%','@'),CONSTANT=('A7%%@%');
Then, when the first two character positions of the CONSTANT parameter are checked for
a mask character (as specified in the MASK parameter), none is found. For those two po-
sitions, exact character matches between the input data string characters and the CON-
STANT parameter characters (in this case A7) are required. Therefore, in this example,
only data strings that begin with A7 can possibly pass the entire test.
Example 4
T2: TABLE MASK=('*',':','!'),CONSTANT=('DATE ::/ ::/:: ID!!!');
Mask
position
0
1
2
A logical test using this TABLE command examines a field of an input data record to deter-
mine if the word DATE is present, if the / is where it is supposed to be, if the date itself is
numeric (type 1), if the string ID is present, and if the first three characters after ID are al-
phabetics (type 2).
146
Type
Meaning
None
Make no comparison
1
Standard default, any numeric (0-9)
2
Standard default, any alphabetic (A-Z, a-z)
Mask
Character
character
type
*
None
:
!
Meaning
Make no comparison
1
Any numeric (0-9)
2
Any alphabetic (A-Z, a-z)
Using Logical Processing
A29247-X4-X-8-7672

Advertisement

Table of Contents
loading

This manual is also suitable for:

DjdePrismaproduction server v3.10

Table of Contents