TABLE Command
Using Logical Processing
146
A29247-X4-X-8-7672
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.
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!!!');
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).
Character
Type
Meaning
?
None
Make no comparison
%
1
Standard default, any numeric (0-9)
@
2
Standard default, any alphabetic (A-Z, a-z)
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)
Summary of Contents for XDL
Page 1: ...Oc Oc Reference Guide Oc PRISMAproduction Server V3 10 LCDS Module XDL DJDE...
Page 4: ...A29247 X4 X 8 7672...
Page 66: ...Summary of VOLUME Command Parameters Input Processing 58 A29247 X4 X 8 7672...
Page 118: ...Summary of OUTPUT Command Parameters Continuation Print Processing 110 A29247 X4 X 8 7672...
Page 120: ...Summary of OUTPUT Command Parameters Continuation Print Processing 112 A29247 X4 X 8 7672...
Page 121: ...Print Processing Summary of OUTPUT Command Parameters Continuation A29247 X4 X 8 7672 113...
Page 123: ...Print Processing Summary of OUTPUT Command Parameters Continuation A29247 X4 X 8 7672 115...
Page 125: ...Print Processing Summary of OUTPUT Command Parameters Continuation A29247 X4 X 8 7672 117...
Page 142: ...Summary of STOCKSET Statement Command Parameters Print Processing 134 A29247 X4 X 8 7672...
Page 176: ...RSUSPEND and RRESUME Commands Using Logical Processing 168 A29247 X4 X 8 7672...
Page 240: ...Migrating to HC Highlight Color Support 232 A29247 X4 X 8 7672...