View previous topic :: View next topic
|
Author |
Message |
mdtanweer
New User
Joined: 26 Mar 2009 Posts: 6 Location: Bangalore
|
|
|
|
Hi Experts,
Please tell me, what exactly happens when we bind a COBOL-DB2 program |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
What did you find yourself when you did (of course) some internet
searching? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
/ Loop starts
:Reply from Peter
BIND, in a typical sense, provides the connectivity between your program and the db2 database. There is something called as plan which does the same thing also and the difference is that an Application Plan provides the connectivity for a complete program (including all of the called sub-programs) while a package can provide the connectivity for a single sub-program. Each program must have an application plan but packages are an optional component that makes maintaining the application plans much easier.
In order for your program to be able to be executed without giving a -818 SQLCODE you need to bind an application plan for your entire program.
still have questions?
:Go To Reply from Peter
/ Loop ends |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Anuj,
i am sometimes in a bind, but i was never in a loop |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I know, I know Peter - you are better than me in "Control Breaks" . |
|
Back to top |
|
|
ganeshprasanna
New User
Joined: 21 Feb 2009 Posts: 36 Location: South Portland, Maine
|
|
|
|
Anuj,
I faced a -818 recently. I tried to bind the program, which was successful. but the -818 dint not resolve?.. any thoughts, what might be the cause even after binding? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Only suggestion I can give is BIND the application again, using the DBRM for the application program that matches the object module. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
any thoughts, what might be the cause even after binding? |
Yes, the components are "out of sync". . .
Suggest you rerun the pre-compile, compile, link, and bind using all of the correct components for each step. . . |
|
Back to top |
|
|
|