can I copy book which contain db2 statment in procedure
divion?




Answers were Sorted based on User's Feedback



can I copy book which contain db2 statment in procedure divion?..

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

can I copy book which contain db2 statment in procedure divion?..

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

Post New Answer




More COBOL Interview Questions

What is the LINKAGE SECTION used for?

4 Answers  


What rules are to be followed while using the corresponding options?

0 Answers  


how to transfer the file from pc to mainframe??

5 Answers   TCS,


file status 00 is checked after opening the file or reading the file

4 Answers   John Deere,


Write the syntax of a two dimensional array?

8 Answers   Honeywell, Xansa,






which generation language is cobol

4 Answers   Kanbay,


What are the different types of condition in cobol and write their forms.

0 Answers  


how can i see junk values in dclgen or in hostvariable of comp ?

0 Answers   DELL,


How do you do in-line PERFORM?

3 Answers   Accenture,


What is SQL Code -904 and -903 in DB2 And how to handle it?

1 Answers   IBM,


What is file status 39 ?

10 Answers   JPMorgan Chase,


Please let me know at which Scenarios we will go for STATIC call or DYNAMIC

3 Answers   IBM,






Categories