Skip to main content

Problem:

When compiling any DB2 program with a non-standard SQLDA included in the code, the Mainframe Express compiler fails with the following error..

COBSQ0325S Multiple types of SQLDA's detected - all SQLDA's must use same structure.

How can this be avoided...?

Resolution:

There are 2 ways to solve this.

1. Use the directive      SQLDA-VER=1   in the SQL preproc additional

directives.

From BUILD SETTING for Project/program, open the PREPROC tab on the

right hand side.   

Click on the MORE button next to the EXEC SQL option.

Then enter SQLDA-VER=1 in the additional directives.

2.  Make sure the definition of the customised SQLDA matches the supplied SQLDA copybook.  this can be found in  x:\\MFE\\source

Old KB# 2403

#EnterpriseDeveloper
#MFDS