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
 

 

Binding a COBOL-DB2 program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Binding a COBOL-DB2 program
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: 2435
Location: Netherlands, Amstelveen

PostPosted: Thu May 20, 2010 1:42 pm    Post subject:
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

Senior Member


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

PostPosted: Thu May 20, 2010 2:29 pm    Post subject:
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: 2435
Location: Netherlands, Amstelveen

PostPosted: Thu May 20, 2010 2:38 pm    Post subject:
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

Senior Member


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

PostPosted: Thu May 20, 2010 4:53 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Thu May 20, 2010 5:04 pm    Post subject:
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

Site Director


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

PostPosted: Thu May 20, 2010 8:29 pm    Post subject:
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    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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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