ALLCOMPARE

ALLCOMPARE(x, y, z) returns a BIT(1) value that indicates the result of comparing all the elements of two structures.

Read syntax diagramSkip visual syntax diagramALLCOMPARE( x, y, z)
x
Structure reference.
y
Structure reference.
z
A CHAR(2) constant. When uppercased, the constant must have one of these values: EQ, LE, LT, GT, GE, or NE. If you do not specify z, EQ is the default value.
EQ
Equal to
LE
Less than or equal to
LT
Less than
GT
Greater than
GE
Greater than or equal to
NE
Not equal to

x and y must be similar structure references.

The corresponding elements of x and y must be comparable.

For example, ALLCOMPARE(x, y, 'lt') returns '1'B if every leaf element of x is less than the corresponding leaf element of y.