View previous topic :: View next topic
|
Author |
Message |
shell100
New User
Joined: 14 Apr 2006 Posts: 25 Location: Banglore,India
|
|
|
|
Hi – Need some pointer for below problem:
I have to call stored Proc (PH1111) from another region to access some data. We have build DB2 program (PH2222) which is using CALL Statement to call PH1111. Below id the bind package & plan I have used. This has bind package for local package & another for remote one. Plan includes both.
BIND PACKAGE(ADC1DB2T.MA3_GS) -
QUALIFIER(PH6) -
MEMBER(PH1111) - This is stored proc name we
are calling from ADC1.
SQLERROR(NOPACKAGE) -
VALIDATE(BIND) -
FLAG(I) -
ISOLATION(UR) -
RELEASE(COMMIT) -
EXPLAIN(NO) -
ACTION(REPLACE)
BIND PACKAGE(MA3_GS) -
QUALIFIER(PN4652A) -
MEMBER(PH2222) - This is program on EDEV which calls PH1111.
SQLERROR(CONTINUE) -
VALIDATE(RUN) -
FLAG(I) -
ISOLATION(UR) -
RELEASE(COMMIT) -
EXPLAIN(NO) -
ACTION(REPLACE)
BIND PLAN(GM60400) -
PKLIST(ADC1DB2T.MA3_GS.PH1111, -
PN4652A.PH2222)
ACTION(REPLACE) -
RETAIN -
ISOLATION(CS) -
VALIDATE(BIND) -
ACQUIRE(USE) -
RELEASE(COMMIT) -
FLAG(I) -
EXPLAIN(YES)
I am getting problem in Bind package as PH1111 is on another region & it says DBRM not found. I wanted to know if I am missing some basic concept which is required to bind in such cases. Usually we give DBRM library in our job but since in this case – it is on another region, I am not able to get how to do this.
It would be great if someone can give some pointer to resolve it.
Thanks,
Shalini |
|
Back to top |
|
|
am_ne
New User
Joined: 24 Mar 2007 Posts: 25 Location: Bangalore
|
|
|
|
shell100 wrote: |
I am getting problem in Bind package as PH1111 is on another region & it says DBRM not found. |
The error says that during bind the DB2 searched some default DBRM library and your DBRM was not there.
You can always use option LIBRARY('DBRM PDS Name') in your bind card to override the system default.
Thanks
Amit |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
You can always use option LIBRARY('DBRM PDS Name') in your bind card to override the system default. |
I would only suggest this only be done as an experiment (not for "real" testing, let alone something that will be promoted to production).
There should already be standard processes in place and these should be used rather than overridden.
Possibly i misunderstand (over-react ). |
|
Back to top |
|
|
|