Hi Jose,
So your program is using both Pro*COBOL and XML extensions is that correct?
The statement that is causing it to fail for you is a conditional compile statement in the copybook that is meant to set a data item only if compiling for .NET managed code.
$IF ILGEN SET
01 XMLEXT type
MicroFocus.COBOL.XmlExtensions.MicroFocusCOBOLXmlExtensions.
$END
XML extensions are supported in both native code and managed code programs but ProCOBOL is only supported for native.
I just tested this here and I do get the same results as you and that is because Pro*COBOL does not know what to do when encountering this structure.
You might try commenting out these offending statements or you might want do not use XML extensions directly within COBOL programs containing embedded SQL but instead place XML extensions in subprograms that can be called and compiled without procobol.
If this is still a problem for you then I would suggest that you open up a support incident with Customer Care to report this problem and perhaps we can find a different workaround for you,
Thanks.