REWRITE コレクション文

リストまたは辞書の要素を上書きします。

Context:

    手続き部
        

rewrite-collection-statement

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

注: Other formats of this statement are available. See in the COBOL 言語リファレンス.

次の例では、リスト stringList の最初の要素を上書きします。

       rewrite stringList from "ITEM REWRITE" key 0
       display "The contents of the list after rewrite element 0 : "           
       invoke displayListContents(stringList)

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