IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is package is necessary for a single DBRM


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
finnygeorge

New User


Joined: 07 Aug 2006
Posts: 6

PostPosted: Tue Jan 02, 2007 9:22 am
Reply with quote

Hi


I need your help........... I have only one program which contain some SQL statements.... Is there any need for package in this condition??? Where do we store packages???? My question is I have only one DBRM then is there any need for package??? I hope you got a clear concept of my question??
Back to top
View user's profile Send private message
ansafmmm

New User


Joined: 21 Nov 2006
Posts: 2
Location: India

PostPosted: Tue Jan 02, 2007 11:35 am
Reply with quote

Dear Finny,

It is necessary to build a package in the latest versions. A package is a bind of one or more DBRMs. Even if there is only one program/DBRM, it is necessary to bind and form a Package.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Jan 02, 2007 1:06 pm
Reply with quote

Hi

You have to create a package for each DBRM.If you have one DBRM then you should bind it to a package.


As per DB2 UDB for zOS V8-Appln Pgming & SQL Guide
Quote:
Input to binding a package is a single DBRM only.


Thanks
Arun
Back to top
View user's profile Send private message
ansafmmm

New User


Joined: 21 Nov 2006
Posts: 2
Location: India

PostPosted: Wed Jan 03, 2007 10:05 am
Reply with quote

Yes Arun,
You are right about package defenition.
Sorry for it, a package is only for a single DBRM.

Thankyou
ANSAF
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Wed Jan 03, 2007 10:29 am
Reply with quote

Hi,

Package is a concept, if we have 3 calling programs, if we change one program there is no need to compile all the 3 programs.

In your case, There is only one DB2-program so there is no need for the package. Plan will serve the purpose.

But to see in future prospects it is better to bind using package.
Back to top
View user's profile Send private message
humpty
Warnings : 1

New User


Joined: 01 May 2005
Posts: 23

PostPosted: Wed Jan 03, 2007 2:43 pm
Reply with quote

Dear,

let us talk about the basics first.
DBRM - it contains all the embedded SQL statements and the consistency token which is nothing but a timestamp.
BIND - it is simply a compiler for SQL statements.
PACKAGE - it contains access path and consists only of single DBRM.
PLAN - plan consists of more than one DBRM or more than one PACKAGE or a combination of DBRM and a package. It also contains access path, however, it is executable. This is the only difference between plan and package.

every DBRM needs to be bind either into a package or a plan. but since plan is the only executable format, therefore, if you bind DBRM into package. it has to be ultimately transformed into plan.

it is always advisable to bind DBRM into packages and in turn to plan.

lets take an example:
suppose you have 100 programs. if you bind these 100 pgms into single PLAN, and if there is change in any pgm, then you need to BIND the 100 pgms again into PLAN.

but if you make 100 packages for the 100 pgms and if there is any change in 1 pgm. then only 1 package needs to be bind again instead of 100 binds as in the upper case.

since in your case it is only 1 pgm, you may opt for plan. but it is advisable to opt for package and in turn for plan.

i hope this clears the scenario.

icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts Merge a variable number of records fr... DFSORT/ICETOOL 5
Search our Forums:

Back to Top