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

Binding a COBOL-DB2 program


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

New User


Joined: 26 Mar 2009
Posts: 6
Location: Bangalore

PostPosted: Thu May 20, 2010 1:27 pm
Reply with quote

Hi Experts,

Please tell me, what exactly happens when we bind a COBOL-DB2 program
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu May 20, 2010 1:42 pm
Reply with quote

What did you find yourself when you did (of course) some internet
searching?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu May 20, 2010 2:29 pm
Reply with quote

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

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu May 20, 2010 2:38 pm
Reply with quote

Anuj,

i am sometimes in a bind, but i was never in a loop icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu May 20, 2010 4:53 pm
Reply with quote

I know, I know Peter - you are better than me in "Control Breaks" icon_lol.gif .
Back to top
View user's profile Send private message
ganeshprasanna

New User


Joined: 21 Feb 2009
Posts: 36
Location: South Portland, Maine

PostPosted: Thu May 20, 2010 4:58 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu May 20, 2010 5:04 pm
Reply with quote

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

Moderator Emeritus


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

PostPosted: Thu May 20, 2010 8:29 pm
Reply with quote

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
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top