Getting error about data item being not suitable for a host variable when converting from ACU to Visual COBOL

0 Likes
over 7 years ago

Problem:

Customer is converting from ACUCOBOL to Visual COBOL managed .NET and they are receiving a compiler error on a program that is doing embedded SQL access.

They have host variables defined as PIC X(5) COMP-X.

Are these allowed in Visual COBOL?

Resolution:

In Visual COBOL when using OpenESQL these host variables would need to be defined as PIC X(4) COMP-X/COMP-5 for integer columns or PIC X(8) COMP-X/ COMP-5 for bigint columns.

There is a chart that shows compatible COBOL data types for host variables here:

There’s further detail on all the host variable definitions supported by OpenESQL – as well as the DB2 ECM– under here .

Comment List
Anonymous
Related Discussions
Recommended