View previous topic :: View next topic
|
Author |
Message |
ganga79
New User
Joined: 16 Nov 2005 Posts: 23
|
|
|
|
Hi,
1.
i am having 3 programs PRGA,PRGB,PRGC,
PRGA IS THE MAINPROGRAM
PRGA IS CALLING PRGB AS A DYNAMIC CALL.
PRGB IS CALLING PRGC AS A STATIC CALL.
PRGC IS HAVING DB2 STATEMENTS IF I MADE ANY CHANGES IN PRGC
WHAT PROGRAMS I HAVE TO COMPILE AND PRECOMPILE ANY ONE EXPLAIN THIS PROCESS.
2.
I AM HAVING 2 PROGRAMS PRGA,PRGB
PRGB HAVING THE DB2 STATEMENTS
IN BIND TIME WHAT STEPS I HAVE TO FOLLOW.
THANKS
GANGA |
|
Back to top |
|
|
Hames
New User
Joined: 03 Oct 2005 Posts: 49
|
|
|
|
Hi Ganga,
ProgA is compiled separately.
ProgB is statically calling ProgC.
In static call the subprogram is compiled and link edited into the main program.
So progC is precompiled and compiled and it is link edited into ProgB to form a Single Load module for ProgB and ProgC. |
|
Back to top |
|
|
itssreehere Warnings : 1 New User
Joined: 10 Jan 2006 Posts: 65 Location: chennai
|
|
|
|
as per my knowledge,it depends on 2 things.
1) whether your shop is using package or plan for DB2 programs.
2)programs are called dynamically or statically
a)if your shop is using plans with out packages you need to compile/rebind all the three application programs irrespective of the type of call.
b)if you are using packages and if all the calls are dynamic, then you need to compile/rebind only PGM C. No need to bind A and B since they are not changed.
c)In the scenario in question,If you are using package and since B&C are statically compiled you need to compile/rebind B and C. Not A.
Please let me know in case of any mistaked i made. |
|
Back to top |
|
|
|