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

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

2745


Write a program that uses move corresponding.

664


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1757


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1918


How do you get the data to code the BMS macro?

1466






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?

2089


What is cobol?

732


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

696


What are the pertinent COBOL

2034


explain sorting techniques in cobol program?

678


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

698


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2651


example for sub strings ? and refernce modifications whit output pls

1831


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2093


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

662