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 are the different data types in cobol?
Define cobol?
What is amode(24)?
Name some of the examples of COBOl 11?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What the difference is between continue and next sentence?
What is inspect in cobol ?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is rmode(any) ?
How do get the result of your program directly on your pc?
how do you reference the esds vsam file formats from cobol programs
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the Purpose of Pointer in the string?
How many sections are there in data division in COBOL?