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


Please Help Members By Posting Answers For Below Questions

what is difference between cobol and cobol/400

22221


What is cobol?

977


Difference between cobol and cobol-ii?

974


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5144


What are various search techniques in cobol? Explain.

900


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

886


what is the use of outrecord?

2004


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17558


how do you reference the fixed unblock file formats from cobol programs

968


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?

2051


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1792


What is amode(31)

946


What are the different open modes available in cobol?

970


how to convert the recors form vsam file to db2 table tru file aid

3015


how do you reference the ksds vsam file formats from cobol programs

916