View previous topic :: View next topic
|
Author |
Message |
Kumara Mangal
New User
Joined: 19 Apr 2007 Posts: 2 Location: India
|
|
|
|
I have the following problem. Please let me know a solution to this problem.
There is a common db2 module(Prog XX) which is statically called in many of the programs which I use.
The pattern of the static calls looks some thing like this
Myprog-->Prog-A-->Prog-B-->Prog-C----->Prog-D--->Prog-F
Now issues static calls Prog-B-->Prog XX
Prog-F--->Prog XX
We use a common load module to store the compiled load module to XXXX.Common.LOADS (My team mebers compiles in to this common load lib too)
Now my issues is if some body compile Prog XX ;I was forced to recompile all modules in order to run my program.
I tried then creating my own Load lib(XXXX.KUMAR.LOADS) and compiled all modules to this library and pointed this as my laod for running. This worked for a while. But if somebody else tried compiling (which is beyond my control) Prog XX;I would get a -805 when tried running My prog.
Can somebody can propose a solution to this? We have bind by package implemented set up for performing Bind (normally happens along with compile ie, uses an in house rexx exec to compile/bind to test region). |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Why are you doing static calls? Dynamic calls should solve your problem.... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
since you have automated jcl generation (your 'in house rexx'), why don't you make it smart enough to know that when module xxy is recompiled, all modules that are statically linked must be relinked.
moving your stuff out of a 'common' area to a 'private' area is rookie! Solve the problem, don't try to avoid it.
and as CICS Guy said, why does your shop still use antiquated methodologies? With the boxes that we have now, there is no excuse to continue with static linking. |
|
Back to top |
|
|
Kumara Mangal
New User
Joined: 19 Apr 2007 Posts: 2 Location: India
|
|
|
|
These programs currently taken from prod for my changes in to it..and just can't go around and change all static calls to dynamic.
I knew the options which you guys mentioned cannot solve my problem as these are not on my hands(rewamp the raexx panel to perform compilation of statically linked modules), or even changing the existing calls in the programs to dynamic calls(these progs were written some time back and I know its impractical to use static calls)..
My interset is to find a way to solve my problem ;so that I could make my changes and can test it..
Any brillinat - help/suggestions/idea welcome |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what you have to do is check the load modules each time you go to test to insure nothing has changed. if it has, you need to relink - and if you don't have your endevor setup to allow you to relink an element, you need to recompile/relink.
your are stuck until your shop climbs out of the dark ages. |
|
Back to top |
|
|
|