Oce XDL Reference Manual page 153

Lcds-module xdl/djde
Table of Contents

Advertisement

Using Logical Processing
.
Parameter
CONSTANT=
(sc
[,sc
][,...])
1
2
MASK=
(ignore-char
[,charspeci
[,charspeci
[,...])
Examples
This section shows examples of using the TABLE command.
Example 1
The following are sample TABLE commands. The identifiers T1, T2, and T3 are each ref-
erenced by a CRITERIA command.
T1: TABLE CONSTANT=('$$//');
T2: TABLE CONSTANT=('//JOB ','//EXEC');
T3: TABLE CONSTANT=(120)'*';
Example 2
The following example illustrates the use of the MASK parameter to determine whether a
particular field in a data record contains one of several different 6-character serial number
formats. Possible formats are: xx999x, x999x9, and 99x999. For this example, x represents
any alphabetic character and 9 represents any numeric character.
If the input code type is EBCDIC, the VOLUME command includes TCODE=EBCDIC. The
TABLE command to find the format x999x9 within the input data stream would look like:
T1: TABLE MASK=('?','%','@'),CONSTANT=('@ % % % @ %');
A29247-X4-X-8-7672
Definition(s)
sc
is a string of constants composed of literal characters and masking characters
(as defined by the MASK parameter of this command). All string constants must
be of the same length in bytes. The number of bytes for all constants in the table
(after conversion of any hexadecimal or octal constants) is limited to 255 bytes.
There is no default.
This option has the following components:
ignore-char
]
Specifies a character to appear in those positions within a string constant which
1
]
are not to be compared.
2
charspeci
(i = index number) specifies a character(s) to appear in those positions within a
string constant where a test for type i characters is to be performed. A charspec
is of the form: 'char' or ('char','char',...'char'). Mask characters should be defined
using the same string type as in the string specified in the CONSTANT parame-
ter.
There is no default.
TABLE Command
145

Advertisement

Table of Contents
loading

This manual is also suitable for:

DjdePrismaproduction server v3.10

Table of Contents