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 REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


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