-
Problem with Mixed language programming
Hi:
Forum, I have a problem. I am having a situation where I am interfacing with a COBOL program with embedded SQL statements from a C program. For this purpose, I have a C header file which has Struct declarations and I have used "h2cpy" and included the .cpy file as the first statement in my COBOL program.
When I first try to compile my COBOL program (with embedded SQL statements) using the compilation command,
cob -C ARITHMETIC\"VSC2\" -C IBMCOMP -C IDXFORMAT\"4\" -Q+s -g -t -x -P -We -C "p(cobsql) dis sqldebug csqlt==ora end-c include==../COPYLIB sqlcheck==full userid==username/password p(cp) endp" -c -v -k COBPROG.pco
I get an error as
196
Error at line 197, column 8 in file COBPROG.sks
197 end program "c-typedefs".
197 .......1
197 PCB-S-00400, Encountered the symbol "END_PROGRAM_STATEMENT" when expecting one of the following:
IDENTIFICATION_DIVISION ENVIRONMENT_DIVISION DATA_DIVISION
PROCEDURE_DIVISION WORKING_STORAGE_SECTION LINKAGE_SECTION
FILE_SECTION LOCAL_STORAGE_SECTION CONSTANT_SECTION
COMMUNICATION_SECTION REPORT_SECTION SCREEN_SECTION
REPLACE_STATEMENT COPY_STATEMENT EXEC_ORACLE_OPTION
EXEC_ORACLE_IFDEF EXEC_ORACLE_DEFINE
I do not know what to do. Can you please help.
I am running on HP-UX and using Oracle9i.
Thanks..Shyam
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|