declare i1 as binary-long display i1 *> Optionally, the variables can be initialised inline declare c2 as condition-value = true display c2 declare string-list2 as string occurs 3 = table of string("Bill", "Ben", "LittleWeed")
ローカル変数のサンプルも参照してください。このサンプルは、[スタート> すべてのプログラム > Micro Focus Visual COBOL > サンプル] の [COBOL for JVM] (Windows) または $COBDIR/demo (UNIX) にあります。