Skip to main content

Problem:

A DB2 application runs fine on a machine that has Net Express 5.1 and DB2 client installed, but it fails with the following error when it is executed on a machine that has Server 5.1 and DB2 client installed:

Load error : file 'sqlgstrt' 
error code: 173, pc=0, call=1, seg=0 
173 Called program file not found in drive/directory

Resolution:

This problem usually occurs when the DB2 runtime files are not found in the PATH. However, the Server 5.1's installation inserts quotes around the location of the COBOL runtime files (i.e. "C:\\Program Files (x86)\\Micro Focus\\Server 5.1\\Bin") causing a problem with the search through PATH and/or COBDIR. The purpose behind the quoted path was for backward compatibility with older versions of Windows.

Until an Update (formerly known as WrapPack) is released to remove these quotes, the workaround is to update PATH and COBDIR manually in the Micro Focus registry entries by following the steps below:

  1. Open the Windows registry (regedit)
  2. On a 64-bit Windows, go to HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Micro Focus\\NetExpress\\5.1\\COBOL\\5.1\\Environment
    On a 32-bit Windows, go to HKEY_LOCAL_MACHINE\\SOFTWARE\\Micro Focus\\NetExpress\\5.1\\COBOL\\5.1\\Environment
  3. Edit PATH
  4. Remove the quoted path
    On a 32-bit Windows, keep as C:\\Program Files\\Micro Focus\\Server 5.1\\Bin;%PATH%
    On a 64-bit Windows, keep as C:\\Program Files (x86)\\Micro Focus\\Server 5.1\\Bin;%PATH%
  5. Click OK
  6. Edit COBDIR
  7. Remove the quoted path
    On a 32-bit Windows, keep as C:\\Program Files\\Micro Focus\\Server 5.1\\Bin;%COBDIR%
    On a 64-bit Windows, keep as C:\\Program Files (x86)\\Micro Focus\\Server 5.1\\Bin;%COBDIR%
  8. Click OK
  9. Close the Windows registry