SET Statement
Can set the size of an array; initialize the contents of an array and set the size accordingly; and set the value of a data item or a boolean data item.
Context:
Procedure Division
Statements
set-statement
Note:
Other formats of this statement are available. See
Statements
in the
COBOL Language Reference
.
Example
See the Core sample, which is available from
$COBDIR/demo
.
Parent topic:
Statements - Alphabetic List
Related reference
INVOKE Statement
The SET Statement
Related information
Invoking a Method
Arrays - in COBOL and Java
Objects - in COBOL and Java