View previous topic :: View next topic
|
Author |
Message |
manojthokala7
New User
Joined: 17 Sep 2018 Posts: 2 Location: India
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3073 Location: NYC,USA
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Have you looked at the "sticky" (4th post in this section of the forum)? If not, why not? |
|
Back to top |
|
|
manojthokala7
New User
Joined: 17 Sep 2018 Posts: 2 Location: India
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3073 Location: NYC,USA
|
|
|
|
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 |
|
|
|