FAQ > PERCobol Compiler Notes > PERCobol using Eloquence - What are special considerations with using this database?

Search the FAQ for entries containing:

1.  The DLL name to call is 'image3k.dll'; the available functions are listed in the Eloquence manual, but they correspond directly to the MPE intrinsics.  (This may be a separate download, depending on how they're doing the downloads currently.)  Be sure that image3k.dll is in your PATH; it normally will be after installation of Eloquence.

2.  Be sure to build the PERCobol project using HP MPE/iX COBOL-II
compatibility.  (When you create a project, select it from under Compatibility).  This will set the datatypes to be exactly like HP COBOL-II.

3.  There is one addition, though, because Eloquence for Windows uses the reverse order for binaries from HP COBOL-II.  So, we don't want exact HP COBOL-II; we want it with the binary reversed.  To reverse binary numbers from HP COBOL-II order (into Eloquence order): select the project in the navigator, right-click, Properties, Cobol Compiler Settings, Datatype and Storage, and check 'BINARY is BINARY-REV'.

4.  Add a call to the DLL to initialize the DLL before any calls are made:

CALL "<path to image3k dll>\image3k.dll"

(NOTE:  I don't believe you need a path if it is in the system folder.)


5.  On the DBOPEN make sure to specify the remote server:


"  <server_name>:<port>/<dbname>"
 ^
 2 spaces



Last updated on December 28, 2009 by Daniel Myers