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

Bind Problem while binding with another region stored proc


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shell100

New User


Joined: 14 Apr 2006
Posts: 25
Location: Banglore,India

PostPosted: Mon Jun 30, 2008 7:31 pm
Reply with quote

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

New User


Joined: 24 Mar 2007
Posts: 25
Location: Bangalore

PostPosted: Tue Jul 01, 2008 10:53 am
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 01, 2008 7:22 pm
Reply with quote

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 icon_wink.gif ).
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
No new posts CICS region is terminated abnormally ... CICS 2
No new posts z/vm installation problem All Other Mainframe Topics 0
Search our Forums:

Back to Top