Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Linking / debugging with MicroFocus NetExpress and Oracle Pro*COBOL

115 views
Skip to first unread message

Matthew James

unread,
Jun 17, 2003, 2:05:49 AM6/17/03
to
I am trying to get NetExpress (on Windows) to work with Oracle
Pro*COBOL (Oracle 9i) and was wondering if anyone has had any success.
In particular:

- I have a COBOL module which I can pre-compile successfully with
Pro*COBOL
- I can then compile that using NetExpress
- I can link an .EXE that includes this module and the procobol .lib
(orasql9.lib)
- The .EXE runs *but* I get the error:

Load Error : file 'ORASQL8'
Called program file not found

The link appears to be working correctly, but the entries don't seem
to be there - it's almost like the library and pre-compiler are not
consistent ...

On a related note - does anybody know how to use Oracle connectivity
in a debug (non-statically linked) environment, ie with the Animator.
The old tricks of rebuilding the cobol runtime system to statically
link in the procobol library no longer seem to apply.

Thanks
Matthew James

Simon Tobias

unread,
Jun 17, 2003, 5:23:11 AM6/17/03
to
Hi Matthew.

This is actually a bug in the Oracle precompiler. It embeds a call to
ORASQLx , in order to make the entry points subsequently called available to
the program.

With Oracle 9, it should embed a call to ORASQL9. The workaround is --
within the Oracle bin directory -- to copy ORASQL9.DLL to ORASQL8.DLL. Your
application should then execute correctly.

You should be able to debug your app in int/gnt code also, without the need
to relink the run-time (on Win32 at least), as Pro*COBOL embeds the above
call into the user app. You should only need to relink the COBOL run-time on
UNIX platforms.

Simon.


Matthew James

unread,
Jun 17, 2003, 7:21:02 PM6/17/03
to
Thanks Simon

That little trick fixed both my statically and dynamically linked problems :-)

Matthew James

"Simon Tobias" <Simon....@nospam.microfocus.com> wrote in message news:<bcmmrh$66j$1...@hyperion.microfocus.com>...

0 new messages