can I copy book which contain db2 statment in procedure
divion?
Answers were Sorted based on User's Feedback
Answer / vikas pujar
No. Because the Precompiler will comment out all the SQL statements and replace them with equvi call statements. And if use DB2 statment in Copy ,during pre compilation the statements in the copybook wont be commented out.. they will get expanded during compliation of modified source code and we will get Complilation error there.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / siddhesh
You can if you are using an integrated COBOL compiler. In
an intergrated COBOL compiler the DB2 precompiler, CICS
translator and the COBOL compiler work together. You can
CICS and/or DB2 statements in a copybook.
If you are using a standalone compiler, you cannot include
SQL statements in COPY.
| Is This Answer Correct ? | 6 Yes | 0 No |
How to resolve the soc4 and soc7 errors?
When is inspect verb is used in cobol?
how to pass 100 to s9(4) how r they inserted ?
how do you reference the printer file formats from cobol programs
what is qualification on occurs clause?
What do you do to resolve SOC-7 error?
How to display string in the reverse order using occurs clause?
can you declare redefine in level 01?
how to resolve the file status 47.......
If I want to increase the Limit in GDG. What should I do?
what is soc7 abend?how u can trace it?
How is sign stored in a COMP field ?