COBCH1636 この機能は、マネージコードでは手続き型 COBOL の場合にのみサポートされる

You have used syntax that is not supported in class programs. It is only supported in procedural programs.

To continue to use the syntax in managed code, move it to a procedural program and call it from within a class method.