Hi I am getting the error 173 - Called program file not found in drive/directory SQLADR when running the simple cobol. I included the below command of Additional Directives of Project Properties as my database is Oracle 19c Enterprise Edition 64 bit. I am using Micro Focus Eclipse for Windows.
p(cobsql) CSQLT=ORACLE8 MAKESYN VERBOSE KEEPCBL END-C p(cp) ENDP ENDP litlink
Also I linked the file Orasql12.lib file through Project Properties > Additional Link files. I am new to Micro Visual Eclipse. So I followed the instructions in MicroFocus website. But I am still getting the error. Please let me know if i am missing anything. Thanks in advance.
The error message means that it cannot load the orasql12.dll at run-time.
Is the Oracle 12 client 32-bit or 64-bit?
If it is 32-bit then the process you outlined should work if you are linking to the 32-bit Oracle library. I tested it here and it works fine for me.
If it is 64-bit then you might try the following.
Remove the litlink directive from the build directives.
Add the following code to your main program.
in working-storage
01 pp procedure pointer.
in procedure division.
set pp to entry "orasql12"
This will load the library so the location of the orasql12.dll file must be within the PATH.
The error message means that it cannot load the orasql12.dll at run-time.
Is the Oracle 12 client 32-bit or 64-bit?
If it is 32-bit then the process you outlined should work if you are linking to the 32-bit Oracle library. I tested it here and it works fine for me.
If it is 64-bit then you might try the following.
Remove the litlink directive from the build directives.
Add the following code to your main program.
in working-storage
01 pp procedure pointer.
in procedure division.
set pp to entry "orasql12"
This will load the library so the location of the orasql12.dll file must be within the PATH.
Thank you very much. It worked.