What is the difference between a package and a plan?

Answer Posted / siri

PACKAGE:- package is a single bound dbrm...package is not executable......means its not executable with the cobol load module...dbrm bind the package and trun into the plan...when there is changes need to the sub prg its enough to recompile sub program...for example i have 10 prgs like a,b,c,d,e,f,i,j...i have the requirement to changes need to the program b..in case of package only recompile and rebind b program only....
PLAN :- plan is collections of packages....dbrm is also directly bind to the plan...but one dis advantage is there when dbrm is directly rebind in plan...that is suppose 10 dbrms is there..10 dbrms 10 times rebind to the plan..same example is like above...10 prgs is there like a,b,c......j b program to need changes after compiling the program u rebind not only b program all are rebind again...in case of package bind into the plan...suppose 1000 packages are there they are included in one package list it is easy to bind to the plan...no need to the rebind the 1000 times..one u bind that automatically 999 prgs are bind into the plan...

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is schema the same as database?

811


What are the contents of dclgen?

834


What's The Percentage Free Space ?

958


What is the maximum number of columns in a db2 table?

976


How does a cursor work?

742


Which component is responsible for db2 startup and shutdown?

806


What does db2 mean?

770


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

844


List down the data types in the db2 database.

806


How can you do the explain of a dynamic sql statement?

817


What is db2?

909


How can we read records for specific member in CL? AND rpg?

437


What is the use of db2 optimizer?

812


How can we retrieve the total number of records in RPG & CLLE?

364


Is db2 a programming language?

786