ORDINALNAME Function[1]

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 Micro Focus Customer Care if you require further clarification.

Returns the ordinal member name as a string of non-varying characters related to the value of ordinal x.

Syntax

ORDINALNAME(x)

Parameter

x
A reference of ordinal type.

Description

ORDINALNAME enables you to get the member name of an ordinal value that is or can be displayed, which might be useful when debugging.

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

ORDINALs are not supported in computational expressions, nor can they be converted to character.