Created On: 03 March 2011
Problem:
Our site is upgrading our UDB database server to DB2 version 9. I experienced an error compiling programs using the database on the upgraded server. I found the description of the problem in the Knowlege Base and the solution is to:
Generally, if you receive errors regarding DB2Initialize, you will need to compile your application with the DB2(UDB-VERSION=x) compiler directive, where x should be :
V8 : DB2 v8.x
V9 : DB2 v9.1
V95 : DB2 v9.5
I need to know how I can navigate to the DB2 compiler directive so that I can change the value to the correct version. Can you give me the instructions on how to accomplish this?
Generally, if you receive errors regarding DB2Initialize, you will need to compile your application with the DB2(UDB-VERSION=x) compiler directive, where x should be :
V8 : DB2 v8.x
V9 : DB2 v9.1
V95 : DB2 v9.5
I need to know how I can navigate to the DB2 compiler directive so that I can change the value to the correct version. Can you give me the instructions on how to accomplish this?
Resolution:
You should be able to open right click on the COBOL program, go to the build settings and add to the additional directives like this:
DB2(udb-version=v9)
It can be added in the build settings - preproc tab under additional directives as well.
DB2(udb-version=v9)
It can be added in the build settings - preproc tab under additional directives as well.
Incident #2449266
Old KB# 33594
#EnterpriseDeveloper
#MFDS