COBCH1815 The expression is always of the specified type type-name

The program contains an INSTANCE OF type-name condition specified for a value type operand, and the operand type and type-name are the same. This is not allowed.

Resolution:

Correct the code; then recompile.

Example:

In the following example, the INSTANCE OF references the dt operand as type string, but it is defined as a type System.DateTime.

       01 dt type System.DateTime.
       01 i1 binary-long.
           if dt instance of string *>type System.DateTime
               display "Pass"
           end-if