Data initialization

EGL handles data initialization as follows:

The next table gives details on the initialization values.

Primitive type Initialization value
ANY Variable is of an undefined type
BIN (and the integer types), HEX, FLOAT, SMALLFLOAT Binary zeros
CHAR, MBCHAR Single-byte blanks
DATE, TIME, TIMESTAMP Current value of the machine clock (for the number of bytes required by the mask, in the case of TIMESTAMP)
DBCHAR Double-byte blanks
DECIMAL, MONEY, NUM, NUMC, PACF Numeric zeros
INTERVAL Numeric zeros (for the number of bytes required by the mask), preceded by a plus sign
UNICODE Unicode blanks (each of which is hexadecimal 0020)

Related concepts
Function part
DataItem part
Program part
Record parts
Fixed structure

Related reference
EGL statements


Primitive types
set

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.