CREATE コレクション文

リストまたは辞書のインスタンスを作成または構築します。

Context:

    手続き部
        

create-collection-statement

Where: identifier is the name of the list or dictionary collection type.

次の例では、リストの集合を宣言して作成してから、リストに要素を書き込みます。

       declare stringList as list[string]
       create stringList
       write stringList from "item 0"

集合のサンプルも参照してください。このサンプルは、 Start > All Programs > Micro Focus Visual COBOL > Samples , under COBOL for JVM (Windows) or $COBDIR/demo (UNIX). に用意されています。