Context:
Procedure Division Statements
Where: identifier is the name of the list or dictionary collection type.
The following declares and creates a list collection: and then writes an element to the list:
declare stringList as list[string] create stringList write stringList from "item 0"
Alternatively, the above example can be written simply as follows:
create stringList as list[string]
See also the Collections sample, which is available from Start > All Programs > Micro Focus Visual COBOL > Samples , under Language Reference for JVM COBOL (Windows) or $COBDIR/demo (UNIX).