What are the advantages of using a PACKAGE?

Answers were Sorted based on User's Feedback



What are the advantages of using a PACKAGE?..

Answer / s

Packages are single bound DBRMs which contains SQL
statements of a single application program or subroutine.
Before the application program can be executed, you need to
bind a plan. The plan can be bound with DBRM members and/or
Package list. Without the use of packages, if there is any
change made to the program, even if there are no changes to
the SQL, the whole plan need to bound which cause
unavailabilty of the plan and it is resource intensive
since all the unrelated DBRMs are also need to be bound.
With the use of packages, only the package need to be bound
without the need to bind the plan. Also bind parameters can
be specified at package level rather than plan level

Is This Answer Correct ?    6 Yes 2 No

What are the advantages of using a PACKAGE?..

Answer / guest

First u need to know the concept precompliation and
compliation process of db2 cobol program...

the maina dvange of pakage is, supose u have cobol db2
program, this prgoram is using 4 sub programs. if any one
of the sub programs undergoes changes u need to precompile
the main program. this can avoided by using the pakage
concept.

so u need to create one pakage for on sub program. if any
sub programs undergoes any change, u need to compile only
sub program.

Filnally one program will have one pakage and one DBRM lib.

Is This Answer Correct ?    9 Yes 6 No

Post New Answer

More DB2 Interview Questions

How is a typical DB2 batch program executed ?

1 Answers  


What is the purpose of the SDSNLOAD dataset in the STEPLIB while running DB2 programs?

2 Answers  


What is node in db2?

0 Answers  


Which component is responsible for processing sql statements and selecting access paths?

0 Answers  


define clustering index.

0 Answers  






What is the physical storage length of timestamp data type?

0 Answers  


If I have a view which is a join of two or more tables, can this view be updatable?

3 Answers  


Why might full image copies be faster to implement than an incremental image copy?

4 Answers  


Where do you specify them?

0 Answers  


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

0 Answers   Infosys,


What's The Error Code For Unique Index Voilation?

0 Answers   IBM,


What is a trigger in the db2 database?

0 Answers  


Categories