Created On: 10 February 2011
Problem:
When compiling a COBOL program that uses the DB2 directive on a Windows 7 computer, the following error occurs:
COBDB0006S Required DB software: 'db2agapi' could not be found.
This occurs even though the location of db2agapi.dll, C:\\program files (x86)\\IBM\\SQLLIB\\BIN is specified in the system PATH. The same program works fine on a Windows XP computer.
COBDB0006S Required DB software: 'db2agapi' could not be found.
This occurs even though the location of db2agapi.dll, C:\\program files (x86)\\IBM\\SQLLIB\\BIN is specified in the system PATH. The same program works fine on a Windows XP computer.
Resolution:
This problem occurs when the Net Express project file resides on a mapped network drive instead of on the local drive. Try the following:
1. Open the project in the Net Express IDE and select Project > Properties and click the IDE button
2. Add the environment variable PATH with the following value: c:\\program files (x86)\\ibm\\sqllib\\bin;%PATH%
3. Do not place quotes around the value
4. Try to rebuild again
Note: If your DB2 installation is in a different folder than the default shown above then please substitute its name for the name shown.
1. Open the project in the Net Express IDE and select Project > Properties and click the IDE button
2. Add the environment variable PATH with the following value: c:\\program files (x86)\\ibm\\sqllib\\bin;%PATH%
3. Do not place quotes around the value
4. Try to rebuild again
Note: If your DB2 installation is in a different folder than the default shown above then please substitute its name for the name shown.
Incident #2499772
Old KB# 33324



