When to go for BIND PLAN and BIND PACKAGE?

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Post Reply
biswaranjan
Member
Posts: 20
Joined: Thu Aug 28, 2008 10:41 am

When to go for BIND PLAN and BIND PACKAGE?

Post by biswaranjan » Tue Dec 29, 2009 6:29 pm

Hi,

Can someone guide me on the query on When to go for BIND PLAN and When to go for BIND PACKAGE?

Regards,
Biswa.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Tue Dec 29, 2009 8:38 pm

May be you like to go through this link: http://www.zjournal.com/index.cfm?secti ... le&aid=336
Regards,
Anuj

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

db2 plan vs package.

Post by Natarajan » Wed Dec 30, 2009 3:10 pm

DB2 Plan

- Before DB2 V2.3, the DBRMs were bound into PLANs.
- There was no concept of packages.
- Multiple DBRM's can be added to a PLAN
- When there is change in on program, there is need to bind fullplan
including the DBRM's which did not changed.

DB2 Packages

- DB2 V2.3 introduced package concept
- Instead of binding a DBRM into a PLAN, we can bind it into a package.
- one DBRM bind to one pacakge ( Incase of PLAN.. we can bind many DBRM's)


When you have multiple DBRM's added to a single
plan, when there is a change in one DBRM, we have to rebind all DBRM's to a DB2 PLAN.

In case of Packages, since one DBRM added to one pacakge, binding that
particular DBRM to PACKAGE is enough, we dont required to rebind all DBRM's.


Multiple Packages can be grouped togther with a name... it is called a collection. we can map these collections to a DB2 PLAN.

Using packages, we can maintain different versions of same package.
Natarajan
Chennai

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others