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...


If we keep the DCLGEN structure for a table in a copybook
and include it in the COBOL program using the COPY
statement, will there be any impact during compilation or
at any stage of program execution?

Answers were Sorted based on User's Feedback



If we keep the DCLGEN structure for a table in a copybook and include it in the COBOL program usin..

Answer / ajay ahuja

DCLGENs are processed by Precompiler.

So instead of using COPY "DCLGEN Menber", it is required to
use INCLUDE "DCLGEN member".

This is because INCLUDE copybooks are being expanded during
Precompilation and COPY "Member" will be expanded during
compilation.

Is This Answer Correct ?    15 Yes 0 No

If we keep the DCLGEN structure for a table in a copybook and include it in the COBOL program usin..

Answer / tom

DCLGENs need to be processed by the precompiler. The
precompiler will comment out the SQL and insert the
appropriate COBOL definitions.

If the COPY directive is used, the COBOL compiler will flag
the SQL with syntax errors.

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is the reason behind not using select * in embedded sql programs?

0 Answers  


What is the use of value function?

0 Answers  


when we are trying to update db2 rows. if the program abends . how we will know that the last successful update row was

5 Answers   IBM,


What is the difference between drop table and delete table?

0 Answers  


How do you stop a db2 database in linux?

0 Answers  


Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?

1 Answers  


What Utility is used to migrate DB2 from one release to the next?

1 Answers  


Suppose we have a query for update update table1 set col1 = 'val1' where col2=(select .... from ...) suppose the subquery does not return any record, what will happen to update?

1 Answers   IBM,


what are the max. & min. no. of partitions allowed in a partition tablespace?

2 Answers   IBM,


What are the functions in DB2?

3 Answers   Satyam,


Can you use a select query in a loop to fetch multiple rows? If so what is the advantage of using a cursor?

2 Answers   L&T, UST,


what is difference between random and sequence file access

1 Answers   Syntel,


Categories