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

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: 2916
Location: NYC,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: 2455
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: 2916
Location: NYC,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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Want to mask Middle 8 Digits of Debit... COBOL Programming 3
No new posts Getting SOC4 while calling a Cobol DB... PL/I & Assembler 4
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Dynamic file allocation using JCL JCL & VSAM 8
No new posts Any JCL or VSAM Utility to get number... JCL & VSAM 1
Search our Forums:

Back to Top