Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Bind Problem while binding with another region stored proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Bind Problem while binding with another region stored proc
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    Post subject: Re: Bind Problem while binding with another region stored pr
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

Site Director


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

PostPosted: Tue Jul 01, 2008 7:22 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us