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
 

 

Wil thre b any BIND if we change in compiled COBOL+DB2 pgm?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
samimaktar

New User


Joined: 03 Aug 2009
Posts: 25
Location: Singapore

PostPosted: Fri Oct 30, 2009 3:03 am    Post subject: Wil thre b any BIND if we change in compiled COBOL+DB2 pgm?
Reply with quote

Hi Friends,
Consider we have a compiled COBOL+DB2 program.Now if there is any change in COBOL source code(no change in SQLCODE),will there be BIND operation or only COBOL code compilation?
Back to top
View user's profile Send private message

samimaktar

New User


Joined: 03 Aug 2009
Posts: 25
Location: Singapore

PostPosted: Fri Oct 30, 2009 3:08 am    Post subject: Reply to: Wil thre b any BIND if we change in compiled COBOL
Reply with quote

My Answer: No BIND operation will be there.If a COBOL+DB2 program consists of 100 sqlcode and it is already compiled then why to compile all these sqlcode again for a change in cobol code.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Oct 30, 2009 5:49 am    Post subject:
Reply with quote

Short answer, you are wrong-

To compile cobol with imbedded sql means
you have to go thru the db2 precompiler to generate cobol calls for the sql.
Without the precompile, the cobol source will not compile.

The precompiler generates a dbrm which will be generated with a timestamp token
that has to match the timestamp token in the generated object
output of compile.
the load module (output of the linkedit or binder [not to be confused with a DB2 bind] step)
will carry forward the timestamp token
which has to match the timestamp token that is in the db2 catalogue
placed there by the db2 bind.
You will receive a -805 sql code when you attempt to execute the new load module
without first performing a bind
which you erroneously believe does not have to be accomplished.

Here are a couple of links link-one and link-two that you should read - at a minimum.

if you are serious about learning db2, suggest you follow links contained in the material above.

i expect any future questions from you to reflect a level of understanding beyond being able to spell db2.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 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