

BuiltIn Functions › $SPACES Function
$SPACES Function
This function returns a space or blank.
This function has the following format:
$SPACES
- You can use $SPACES as a source field in a MOVE or SET statement. It assumes the same length as its associated target.
- You can use $SPACES in a conditional expression as the object of a comparison. It assumes the same length as its associated comparand.
- You can use $SPACES as an implied comparand in a SELECT construct. $SPACES assumes the length of its associated source comparand.
- $SPACES 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'
Copyright © 2015 CA Technologies.
All rights reserved.
 
|
|