Skip to main content

We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

db2agapi.dll is usually found in C:\\Program Files (x86)\\IBM\\SQLLIB\\BIN. You need to make sure this is added to the PATH without any quotes on. Is that what you already have?


We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

thanks for the response. Yes, that's right. That is set, and the file is there. When I run a set path statement, it shows up exactly the same way in both the xp and windows 7 environment.

We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

Are you using the Net Express 32-bit or 64-bit command prompt? You need to make sure you use the 32-bit one.


We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

Thanks, yes I am using the 32 bit command prompt. we are using the 32 bit operating system, so there is no 64 bit option.

We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

Hopefully, you're running Net Express 5.1 because the next step is to turn the CTF trace on. We should then be able to see why it's not picking up db2agapi.dll. You may find the instructions in this KB article here


We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

Yes, 5.1 is what we're running.

We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

I now have the CTF file and have pulled it up in the viewer, but I'm not sure how to tell anything from it. Can someone help me with that?

We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

You may package the CTF trace into a 7z or zip file and attach it here, and I'll have a look at it as soon as I can.


We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

Sorry, I'm new to the community, how do I attach the file?

We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

You may click on "Use rich formatting" at the bottom right of the message field, and then you will see the Insert menu.


We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

cobol.binfile.2604.zip


We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

Have you had a chance to look at the file? Any other ideas?

We use .mak files to compile cobol modules for execution in the server environment.  We are testing a Windows 7 install, and the compile fails because it cannot find the db2agapi.dll.  The same compile with same directives and environmental settings (i.e., path, coblib, etc...)  works fine in the XP environment.  I know there are some instructions on how to fix this in the IDE with a MicroFocus project build, but we are just running .mak files and don't create projects or use the IDE at all.  We generate cobol modules from a 3rd party tool that kicks off the compiles or we compile them manually from the command line using generated .mak files.   Does anyone know why this would occur when the db2agapi file is in the PATH?  I've even put it in the directory where the compile is initiated, just to see if it would find it, but same error. 

Sorry I haven't had the chance to look into this, but I noticed you opened Support Incident #3143040 to address the issue. You're in good hands :)