Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


can I copy book which contain db2 statment in procedure
divion?

Answers were Sorted based on User's Feedback



can I copy book which contain db2 statment in procedure divion?..

Answer / 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

can I copy book which contain db2 statment in procedure divion?..

Answer / siddhesh

You can if you are using an integrated COBOL compiler. In
an intergrated COBOL compiler the DB2 precompiler, CICS
translator and the COBOL compiler work together. You can
CICS and/or DB2 statements in a copybook.

If you are using a standalone compiler, you cannot include
SQL statements in COPY.

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More COBOL Interview Questions

How to resolve the soc4 and soc7 errors?

5 Answers   IBM, RBS,


When is inspect verb is used in cobol?

0 Answers  


how to pass 100 to s9(4) how r they inserted ?

3 Answers   TCS,


how do you reference the printer file formats from cobol programs

0 Answers  


what is qualification on occurs clause?

2 Answers  


What do you do to resolve SOC-7 error?

2 Answers   Sun Life, Wipro,


How to display string in the reverse order using occurs clause?

4 Answers  


can you declare redefine in level 01?

8 Answers   Patni,


how to resolve the file status 47.......

1 Answers   MMM,


If I want to increase the Limit in GDG. What should I do?

2 Answers   IBM,


what is soc7 abend?how u can trace it?

4 Answers   Accenture,


How is sign stored in a COMP field ?

3 Answers   Accenture,


Categories