The INITIALIZE statement sets selected categories of data fields to predetermined values. It is functionally equivalent to one or more MOVE statements.
When the REPLACING phrase is not used:
___ Format _____________________________________________________________________________ | | | <______________ | | >>__INITIALIZE____identifier-1_|_____________________________________________________> | | | | >__ ________________________________________________________________________ _______>< | | | <_________________________________________________________ | | | |_REPLACING____ _ALPHABETIC__________ __ ______ __BY__ _identifier-2_ _|_| | | |_ALPHANUMERIC________| |_DATA_| |_literal-1____| | | |_NUMERIC_____________| | | |_ALPHANUMERIC-EDITED_| | | |_NUMERIC-EDITED______| | | |_ DBCS ______________| | | |_ EGCS ______________| | | | |________________________________________________________________________________________|
A subscripted item can be specified for identifier-1. A complete table can be initialized only by specifying identifier-1 as a group that contains the complete table.
The data description entry for identifier-1 or any items subordinate to identifier-1 cannot contain the DEPENDING ON phrase of the OCCURS clause.
The data description entry for identifier-1 must not contain a RENAMES clause. An index data item cannot be an operand of INITIALIZE.
Special registers can be specified for identifier-1 and identifier-2 only if they are valid receiving fields or sending fields, respectively, for the implied MOVE statement(s).
Subtopics:
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.