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

Regarding COBOL DB2 compilation PLAN


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

New User


Joined: 26 Nov 2004
Posts: 3

PostPosted: Fri Nov 26, 2004 9:57 pm
Reply with quote

Hi...
I want to clarify some of the doubts regarding the PLAN.
If we Precompile any COBOL DB2 Program, If we are having 100 sql's also we will get only one DBRM, and if we BIND that DBRM we will get one Package, But PLAN is to point more PACKAGES, how it is possible, because after Precompilation of every step we will get only one DBRM, and according to that one PACKAGE, then how the Plan will point to more Pakcages concept will come here.

Can anybody clarify my doubt? icon_razz.gif
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Sat Nov 27, 2004 4:00 am
Reply with quote

in you cobol program there are thousands of statements but still only one load module is created do you agree with this,
Now your program can call many number of sub programs, accept?.

Plan is a collection of packages. Plan authorizes you to access and packages give the access path.
Back to top
View user's profile Send private message
venkatamv

New User


Joined: 26 Nov 2004
Posts: 3

PostPosted: Mon Nov 29, 2004 8:00 pm
Reply with quote

Hi Friend,

Thanks for ur reply.
That means for each and every subprogram one DBRM will be created if it is having the sql's. Right?
And for all those DBRM's if we apply the BIND we will get multiple Packages & and the PLAN will point to all those Packages. Right?

If any wrong let me know.

I am having another doubt, how the Time Stamp concept will come in PLAN & Load Module. Can u explain me some what elaborately with any one Program which is having the Subprograms, that is with multiple Load modules & with multiple Packages.


Bye.
Back to top
View user's profile Send private message
venkatamv

New User


Joined: 26 Nov 2004
Posts: 3

PostPosted: Thu Dec 02, 2004 6:14 pm
Reply with quote

Hi Masade,

Why u r idle, may i get the answer for my question from u.
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Thu Dec 02, 2004 9:00 pm
Reply with quote

Hi Venkat,

There is a wonderful article written by By Bonnie Baker in DB2 magazine about these plans,packages,collections,timestamp concept etc etc...

Just check the following links.It is given in 3 parts:

www.db2mag.com/story/showArticle.jhtml?articleID=15300107

www.db2mag.com/story/showArticle.jhtml?articleID=17602333

www.db2mag.com/story/showArticle.jhtml?articleID=18901299


Hope after going thru this article all your doubts will be cleared.
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Fri Dec 03, 2004 3:06 am
Reply with quote

venkatamv wrote:
Hi Masade,

Why u r idle, may i get the answer for my question from u.


I am sorry man , I was off this week.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top