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

we can code COPY DCLGEN or INCLUDE DCLGEN,
At which stage of the precompilation , dclgen get expanded
if we write 1) copy
2) include
one question about dclgen..
Is it mandatory to use declare table in dclgen..
I think no...but
it will be used by the precompiler to validate the table
name,column name etc..,
can one clear my doubt ..is it necessary to include
declare table or not?

Answer Posted / prashanth

The copy books are expanded only in the compilation phase
of the application execution. But we would need the details
from DCLGEN in the pre-compilation phase, wherein the DB2
statements in the COBOL application is separated and put in
a DBRM. The equivalent COBOL ‘CALL’ statements are replaced
for the DB2 statements in the COBOL code. Then the
compilation of the COBOL and binding of the DBRM is done,
before being linked and executed.
Hence the INCLUDE statement is used instead of COPY
statement, an adaptation for the pre-compilation stage. The
same reason applies to the usage of INCLUDE in case of
SQLCA inclusion.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does db2 blu stand for?

1214


What is role in db2?

1157


Why select is not preferred in embedded sql programs?

1346


What is access path in db2?

1042


What is temporal table in db2?

1099


Which command is used to connect to a database in DB2 ? Give the Syntax.

1148


What kind of database is db2?

1081


Can we delete records from view?

1018


What is the difference between nvl and coalesce?

1105


How will you return the number of records in table?

986


What is difference between isnull and coalesce?

1104


What is dpf in db2?

1167


What is a bind in db2?

1100


What is null in db2?

1068


How to find the number of rows in a db2 table?

1154