![background image](http://html1.mh-extra.com/html/oce/xdl/xdl_reference-manual_3216756150.webp)
String comparison Concepts
Using Logical Processing
142
A29247-X4-X-8-7672
4.3 String comparison Concepts
This section focuses on string comparisons, character types, and masked comparisons us-
ing default and non-default type assignments.
4.3.1 String comparisons
String comparisons for logical processing are specified using the CRITERIA and TABLE
commands. These comparisons test for one of the following conditions:
•
Absolute equality—tested for by either a change mode CRITERIA command or by a
constant mode CRITERIA command which references a TABLE command that does
not have a MASK parameter coded.
•
Equality under a mask—tested for when the referenced TABLE command has a MASK
parameter coded.
Comparing strings for equality under a mask means that the user has specified, for
each character position of the input data string, that the test performed is one of the fol-
lowing:
Compare the character in that position for absolute equality.
Ignore the character in that position (consider the character, whatever it is, to compare
as equal).
Compare the character in that position for type, for example, alphabetic, numeric, or
some specially defined type.
4.3.2 Character types
An attribute called type may be associated with any character(s) in a character set. The
possible types are identified by the integers 1 through 7. Any single character in a set, for
example \, will either have a type (type 1, type 2, type 3, and so forth.) or not. If it has no
type, it is referred to as untyped. It is possible for any character to be untyped, have one
type, or have multiple types, for example, be type 2 and type 3.
The defining of types, that is, the associating of type numbers with any group of characters
in a character set, is described in the ”Character type assignments—TCODE command”
section of the ”Specifying input parameters” chapter.
For every standard character set, there is a set of standard default type assignments which,
for most applications, is sufficient without modification. These assignments define the nu-
meric characters 0-9 to be type 1 characters and the uppercase and lowercase alphabetic
characters A-Z and a-z to be type 2 characters. Use of these default type assignments can
be invoked by the TCODE parameter of the VOLUME command.
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...