Purpose
Returns a signed FIXED BINARY value.
Parameters
x is an expression and
p and
q are integers representing precision and scale factor, respectively.
Description
SIGNED converts the expression
x into a signed FIXED BINARY value with a specified precision
p and, optionally, a scale factor
q. If
p is omitted, the default scaling factor is zero.
Examples
dcl u32 unsigned fixed binary (32) init('FFFFFFFF'xu);
put skip list (SIGNED(u32,31,0));
Prints -1.
Restrictions
The scaling factor
q is not currently supported for signed and unsigned FIXED BIN data types and is assumed to be zero.