The INITIALIZE statement provides the ability to set selected types of data fields to predetermined values; for example, numeric data to zeroes, alphanumeric data to spaces, or data pointers to NULL.
identifier-1 must be of class alphabetic, alphanumeric, numeric, or data pointer.
For the category data-pointer specified in the REPLACING phrase, a SET statement with identifier-2 or literal-1 as the sending operand and an item of the category data-pointer as the receiving operand must be valid.
For each of the other categories specified in the REPLACING phrase, a MOVE statement with identifier-2 or literal-1 as the sending item and an item of the specified category as the receiving operand must be valid.
The same category cannot be repeated in a REPLACING phrase.
An index data item may not appear as an operand of an INITIALIZE statement.
The data description entry for the data item referenced by identifier-1 must not contain a RENAMES clause.
The general rules that apply to the INITIALIZE statement are as follows:
If the category of a receiving operand is data-pointer, the implicit statement is:SET receiving-operand TO sending-operand
Otherwise, the implicit statement is:MOVE sending-operand TO receiving-operand
Default Initialization Values
INITIALIZE Statement Examples
COBOL Related Interview Questions
|VSAM Interview Questions||IBM - VSAM Interview Questions|
|IBM-CICS Interview Questions||JCL Interview Questions|
|IBM DB2 Interview Questions||IBM-JCL Interview Questions|
|DB2 Using SQL Interview Questions||IBM-JCL&VSAM Interview Questions|
|IBM Mainframe Interview Questions||COBOL, CICS, JCL, VSAM, DB2 Interview Questions|
|DB2 SQL Programming Interview Questions||IMS/DB Interview Questions|
|Mainframe DB2 Interview Questions|
Procedure Division Statements
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.