can I copy book which contain db2 statment in procedure
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|
What is the LINKAGE SECTION used for?
What rules are to be followed while using the corresponding options?
how to transfer the file from pc to mainframe??
file status 00 is checked after opening the file or reading the file
Write the syntax of a two dimensional array?
which generation language is cobol
What are the different types of condition in cobol and write their forms.
how can i see junk values in dclgen or in hostvariable of comp ?
How do you do in-line PERFORM?
What is SQL Code -904 and -903 in DB2 And how to handle it?
What is file status 39 ?
Please let me know at which Scenarios we will go for STATIC call or DYNAMIC