

BuiltIn Functions › $HIGH Function
$HIGH Function
The $HIGH function returns the highest value in the alphanumeric collating sequence.
This function has the following format:
$HIGH
- You can use $HIGH as a source field in a MOVE or SET statement. It assumes the same length as its associated target.
- You can use $HIGH in a conditional expression as the object of a comparison. It assumes the same length as the value to which it is compared.
- $HIGH has a length of 1 when used as the argument of $STRING or in a LIST statement.
- You can use $HIGH as an alphanumeric expression in the WHEN clause of a SELECT construct. $HIGH assumes the length of the SELECT subject.
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'
Copyright © 2015 CA Technologies.
All rights reserved.
 
|
|