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

If you are current on the owner of a set, what is the difference between obtain next and obtain first?

878


Why occurs cannot be used in 01 level in COBOL?

930


What guidelines should be followed to write a structured cobol prgm?

878


HOw can I get the negative sign while deduct high value from low value

2024


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1051


How do you define a variable of comp-1 and comp-2?

924


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2363


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

2992


What is link edit in cobol?

953


Which is not true about evaluate statement

2117


How to remove 2 duplicate records and copy only one using job control language?

992


What are the access modes of START statement?

948


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

1024


Write a cobol program making use of the redefine clause.

954


Name some of the examples of COBOl 11?

2901