IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

Number of Packages required for static and dynamic calling


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

New User


Joined: 17 Sep 2018
Posts: 2
Location: India

PostPosted: Mon Sep 17, 2018 7:14 pm
Reply with quote

Hi All,

I have to develop an application using main and sub programs. I am using dynamic call while calling sub program from Main Program. Both the programs are cobol-db2. I am sure that we require two db2 packages and one plan to execute this.

I want to know how many packages required if i use static call.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2503
Location: NY,USA

PostPosted: Mon Sep 17, 2018 7:22 pm
Reply with quote

Welcome!!
To know what you wants to know is to do some research about it and did you do that anywhere and if yes then what have you learned and if No then that's the first step to lead to your answer and still if you face concerns or doubts post us back with your findings?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2429
Location: Hampshire, UK

PostPosted: Mon Sep 17, 2018 7:45 pm
Reply with quote

Have you looked at the "sticky" (4th post in this section of the forum)? If not, why not?
Back to top
View user's profile Send private message
manojthokala7

New User


Joined: 17 Sep 2018
Posts: 2
Location: India

PostPosted: Mon Sep 17, 2018 7:45 pm
Reply with quote

I agree with you. That is good way to learn. But i don't have access to create DB2 package as of now. That is the reason i posted this question.

Let me know if my assumption is correct or not. To compile main program, first we need to compile sub program to use static calling. If i do sub program compilation, all embedded queries will go to one DBRM lib. After that we will do main program compilation, all Embedded queries will go to another DBRM. So it requires two packages.

I am thinking we need two packages for static call as well. Correct me if i am wrong.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2503
Location: NY,USA

PostPosted: Wed Sep 19, 2018 12:03 am
Reply with quote

Quote:
Let me know if my assumption is correct or not. To compile main program, first we need to compile sub program to use static calling. If i do sub program compilation, all embedded queries will go to one DBRM lib. After that we will do main program compilation, all Embedded queries will go to another DBRM. So it requires two packages
Yes.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Calling Assembler from REXX PL/I & Assembler 5
No new posts Calling Rexx program from Cobol CLIST & REXX 12
No new posts AFRREBLK - Dynamic DSN IBM Tools 9
No new posts Group selective VB records - Trailer ... DFSORT/ICETOOL 16
No new posts Dynamic file read via JCL JCL & VSAM 4

Back to Top