beautypg.com

Xerox 96MX User Manual

Page 328

background image

USING LOGICAL PROCESSING

7-48

XEROX DOCUPRINT 96/DOCUPRINT 96MX LPS PDL REFERENCE

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 positions, exact
character matches between the input data string characters and the
CONSTANT 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!!!’);

The TABLE command above sets up the character-to-type
associations shown in table 7-34.

A logical test using this TABLE command examines a field of an input
data record to determine 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 alphabetics
(type 2).

The basic element used to describe a test for a logical function is the
CRITERIA. Each CRITERIA command describes a field in either a
record or block and the specific test to be performed.

Table 7-34.

Character-to-type associations

Mask
position

Mask
character

Character
type

Meaning

0

*

None

Make no comparison

1

:

1

Any numeric (0-9)

2

!

2

Any alphabetic (A-Z, a-z)