Hi Jack, It seems like you are trying to specify the location of the sqlca copy file as part of your cob command. There should be no need to specify COBOL copy files, such as sqlca.cpy, on the cob command line. Assuming that your COBOL program includes a COPY or INCLUDE statement to reference the copy file, something like: copy sqlca. or EXEC SQL INCLUDE sqlca END-EXEC. the copy file will automatically be included into your source at compile time. If the copy file is not in your current directory, you can use the COBCPY environment variable to specify a path to search for copy files. For example [replace the directories with your actual copy file location(s)]: export COBCPY=/copy/file/path1:/copy/file/path2 cob64 -C MFSYNC -z -o myTest myTest.cbl -L/home/db2inst1/sqllib/lib64 -ldb2 -ldb2gmf Also, since your COBOL program is working with a database, I believe you should be creating a multithreaded executable. You might want to try adding the -t flag to your compile command: cob64 -t -C MFSYNC -z -o myTest myTest.cbl -L/home/db2inst1/sqllib/lib64 -ldb2 -ldb2gmf
↧