COBCH1607 構文は LIST 項目でのみ使用できる

Certain syntax can only be used on items of type DICTIONARY.

In the following example, change the myField1 field to type DICTIONARY to be able to use the key keyword in the PERFORM statement:

class-id myClass.
01 myField1 list[string].
01 myField2 string.
method-id myMethod. 
  perform varying key myField2 through myField1
  ...
  end-perform.
end method.
end class.