- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to BIND all the packages in a collection COLLA to a plan PLANA?
The package is a database object which contains the SQL statements from DBRM in a DB2-optimized form.
The collection is a group of packages using which we can segregate the DB2 packages belonging to the different applications. For example, in a production environment for a Telecom company, we can have different collections for order handling, billing and customer service.
The package or group of packages (collections) are binded into a plan. A plan is an executable object which contains the DB2 access paths of all the SQL queries within it. We can bind a package into a plan directly or we can first generate a collection using package(s) and then bind it to a plan.
Using the below JCL step we can directly bind all the packages inside a collection using a single BIND command.
//BIND EXEC PGM=IKJEFT01 //STEPLIB DD DSN=DIS.TEST.LOADLIB,DISP=SHR //SYSOUT DD SYSOUT=* //SYSTSIN DD * DSN SYSTEM(TB3) BIND PLAN(PLANA) - PKLIST(COLLA.*) - /*
We can use BIND PLAN and PKLIST parameters for this purpose. The argument COLLA.* will take into account all the packages in collection COLLA and bind it to plan PLAN A.
- Related Articles
- How to execute a COBOL-DB2 program PROGA of plan PLANA?
- How to BIND a DBRM directly into a PLAN?
- How to delete all the DB2 packages in collection COLL1?
- How to BIND a DBRM into a PACKAGE and PACKAGE into a PLAN?
- How to bind all the number keys in Tkinter?
- How to remove all elements from a Collection in another Collection
- How to Bind a Book?
- How to add a new field to all the documents in a MongoDB collection
- How to delete all the documents from a collection in MongoDB?
- How to bind a key to a button in Tkinter?
- How to bind a click event to a Canvas in Tkinter?
- How to bind the Enter key to a tkinter window?
- How to bind the Escape key to close a window in Tkinter?
- How to bind the spacebar key to a certain method in Tkinter?
- How to sum the value of a key across all documents in a MongoDB collection?
