ORDINALPRED Function

Purpose

Attention: This topic applies to a feature that is in Early Adopter Program (EAP) release status. We intend to provide the finalized feature in a future release. Please contact OpenText Support for Micro Focus Products if you require further clarification.

Returns an ordinal of the same type as ordinal x, and that is equivalent to the next lower value possible for ordinal x.

Syntax

ORDINALPRED(x)

Parameter

x
A reference of ordinal type.

Example

Using the ORDINAL definitions from the examples in the DEFINE ORDINAL topic:

course = Geometry;

     put skip list (ORDINALNAME(course));               /* GEOMETRY */
     put skip list (BINARYVALUE(course));               /* 102 */
     put skip list (BINARYVALUE(ORDINALPRED(course)));  /* 101 */
     put skip list (BINARYVALUE(ORDINALSUCC(course)));  /* 301 */

Restrictions

None.