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

-805 on static calls to db2 modules


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Kumara Mangal

New User


Joined: 19 Apr 2007
Posts: 2
Location: India

PostPosted: Wed Feb 20, 2008 5:51 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Feb 20, 2008 6:08 pm
Reply with quote

Why are you doing static calls? Dynamic calls should solve your problem....
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Feb 20, 2008 6:44 pm
Reply with quote

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
View user's profile Send private message
Kumara Mangal

New User


Joined: 19 Apr 2007
Posts: 2
Location: India

PostPosted: Thu Feb 21, 2008 12:13 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 21, 2008 12:51 pm
Reply with quote

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
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Job is loading load modules several t... COBOL Programming 12
No new posts Convert CICS Modules to AMODE ANY PL/I & Assembler 6
No new posts Number of Packages required for stati... DB2 4
Search our Forums:

Back to Top