Previous Topic: $LENGTH FunctionNext Topic: $MONTH Function


$LOW Function

This function returns the lowest value in the alphanumeric collating sequence.

This function has the following format:

$LOW

You can use $LOW as a source field in a MOVE or SET statement. It assumes the same length as its associated target.

You can use $LOW in a conditional expression as the object of a comparison. It assumes the same length as its associated comparand.

You can use $LOW as an implied comparand in a SELECT construct. It assumes the length of its associated source comparand.

$LOW has a length of 1 when used as the argument of $STRING or in a LIST statement.

Example

Assume that A, B, and C are 16‑character alphanumeric fields.

SET A = $HIGH       : returns 16 X'FF'
SET B = $LOW        : returns 16 X'00'
SET C = $SPACES     : returns 16 X'40'