cob32: error opening: cobsqlintf.o

I am trying to link a COBOL program that uses Oracle.  Everything is good up until it tries to link the object.  I get the following below:

cob -C IBMCOMP -C NESTCALL  -t -x -a -o ./R9004 R9004.cbl -L/oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/ /oracle/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/cobslqintf.o -lclntsh `cat /oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/ldflags`   `cat /oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/sysliblist` -laio  -lposix4  -lm  -lthread
* Ignored  - NESTCALL
*1502-U
Open fail : 'R9004.cbl'
cob32: error(s) in compilation: R9004.cbl
*** Error code 16
make: Fatal error: Command failed for target `build'
Current working directory /pssource/ps11gtest/workarea/cobol/pa
*** Error code 1
make: Fatal error: Command failed for target `R9004'
/usr/ccs/bin/make -f cobol.mk build COBS=R9004.cbl EXE=R9004
cob -C IBMCOMP -C NESTCALL  -t -x -a -o ./R9004 R9004.cbl -L/oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/ /oracle/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/cobslqintf.o -lclntsh `cat /oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/ldflags`   `cat /oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/sysliblist` -laio  -lposix4  -lm  -lthread
* Ignored  - NESTCALL
cob32: error opening: /oracle/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/cobslqintf.o
*** Error code 1
make: Fatal error: Command failed for target `build'
Current working directory /pssource/ps11gtest/workarea/cobol/pa
*** Error code 1
make: Fatal error: Command failed for target `R9004'
rm: R9004.sdb: No such file or directory
rm: R9004.trc: No such file or directory

ams42870Asked:
Who is Participating?
 
Mark GeerlingsDatabase AdministratorCommented:
I've never worked directly with COBOL, but I do remember interfaces from the mid-90s where I worked on the Oracle side (on VMS then) of the interface, and someone else handled the COBOL side of the problem.

If it helps you feel any better, in my experience in Oracle systems, the most difficult part of setting up a system is getting the networking configured correctly.  Just one missing or mis-placed character in the configuration files that Oracle uses (usually: listener.ora and tnsnames.ora) is enough to prevent the connection from working.

I don't know what kind of networking client or interface your system will use to connect to Oracle, but is there any possibility of an error in that configuration?  Or, do you have a way to test that configuration outside of this COBOL program?

In case you can't get your system to talk directly with Oracle, we used an interfacing program some years ago to connect VMS to Oracle on Windows.  That product was called CONNX.  It also supported connections to UNIX, Linux, and other systems, plus other databases.  Try: www.connx.com to see if they are still in business.  Their product worked very well for us, and their technical support was the best technical support I've encountered.
0
 
slightwv (䄆 Netminder) Commented:
WOW, haven't seen COBOL since the early 90's!!!  That brings back some memories...

>>cob32: error opening: /oracle/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/cobslqintf.o

Does that file exist?
Does the user trying the compile have access to it?

If the file doesn't exist, did you install Pro*COBOL (or whatever they call it these days)?
0
 
ams42870Author Commented:
Yes the file exists .  And I will check the owner on that file.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.