can I copy book which contain db2 statment in procedure
divion?
Answer Posted / 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 |
Post New Answer View All Answers
What is amode(31)
Why would you use find and get rather than to obtain?
What are the pertinent COBOL
How do you reference the following file formats from cobol programs?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How many bytes S(8) comp field occupy and its maximum value?
what is the use of outrecord?
how do you reference the ksds vsam file formats from cobol programs
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What are the different rules for performing sort operation?
how do you reference the printer file formats from cobol programs
Write some characteristics of cobol as means of business language.
What are the access modes of START statement?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?