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: 6967
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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