COBOL Manual for TNS and TNS/R Programs

Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs522555-006
9-94
INITIALIZE
Determining the Sending Operands
The initialize operation determines the sending operand in each implicit MOVE
statement:
°
If you include replacement, the sending operand is the literal or sender
associated with the category of the receiving operand.
°
If you omit replacement, the sending operand is the implied figurative
constant SPACES or ZEROS, as this table shows:
The value of sender is established before the implicit MOVE statement
executes.
Execution of the Implicit MOVE Statements
For each receiving operand, the initialization operation executes an implicit MOVE
statement of the form:
MOVE SENDING-OPERAND TO RECEIVING-OPERAND
The implicit MOVE statements are executed in the order that the receiver s
associated with their receiving operands appear in the INITIALIZE statement
(reading from left to right). When a receiver references a data structure, the
affected elementary items are initialized in the order that they are defined within the
data structure. Tables within data structures are initialized element by element.
Operand Overlap
The storage area referenced by a sender cannot be the same as or overlap the
storage area referenced by a receiver. If this rule is violated, the operation is
undefined.
Category of Receiving Operand Sending Operand
ALPHABETIC SPACES
ALPHANUMERIC SPACES
ALPHANUMERIC-EDITED SPACES
NUMERIC ZEROS
NUMERIC-EDITED ZEROS