COBCH1866 Directive directive-name not supported in .NET COBOL code

The program has been compiled for .NET COBOL code and includes the specified directive, which is not supported in .NET COBOL code.

Resolution:

Recompile the code without the specified directive, or recompile for native code.

Example:

In the following example, the COMP5BYTEORDER directive is set to PORTABLE, which is not supported for .NET COBOL code.

      $set comp5byteorder(portable)
       01 i1 pic 9(9) comp-5 value 3.
           display i1