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
 

 

Compilation and Binding of Cobol-DB2 program.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Bharath Nadipally

New User


Joined: 24 Jun 2008
Posts: 22
Location: Hyderabad

PostPosted: Tue Sep 30, 2008 12:58 pm    Post subject: Compilation and Binding of Cobol-DB2 program.
Reply with quote

I am raising this question as I am on bench and dont have access to mainframes to test it.

I have a existing cobol-db2 program, modified the cobol code(not db2 queries), compiled it but dint bind it. If I try to run it, will it give SQLCODE -818 (Timestamp mismatch)? Or It depends on pre-compiler option?
Back to top
View user's profile Send private message

ksk

Active User


Joined: 08 Jun 2006
Posts: 356
Location: New York

PostPosted: Tue Sep 30, 2008 2:29 pm    Post subject:
Reply with quote

Gives TIme Stamp Mismatch error.
Back to top
View user's profile Send private message
Bharath Nadipally

New User


Joined: 24 Jun 2008
Posts: 22
Location: Hyderabad

PostPosted: Tue Sep 30, 2008 2:42 pm    Post subject:
Reply with quote

As I am not doing any DB2 query changes in program, I dont want to bind it again. Is it possible by using any of Pre-compiler options?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Sep 30, 2008 3:36 pm    Post subject:
Reply with quote

Quote:

I dont want to bind it again


until you bind it again,
you will continue to receive some time of sql error return code
when you try to execute the module.
Back to top
View user's profile Send private message
ramakrishnag

New User


Joined: 10 Sep 2008
Posts: 6
Location: india

PostPosted: Tue Sep 30, 2008 5:12 pm    Post subject: Reply to: Compilation and Binding of Cobol-DB2 program.
Reply with quote

Hi,

Bind is not thing but the SQL code internally converting into Cobol code.

So, even you have not done any code changes at DB2 part, still you have to bind once again.

The code will be inserted in during the compilation.

Thanks,
Rama
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Sep 30, 2008 9:12 pm    Post subject:
Reply with quote

RAMA,

what you described is the precompiler step.


The bind does not even look at the source or load module. only deals with the dbrm.



it is Pre-compile (build DBRM, insert COBOL code)
compile convert source program to object module
BINDER (know as the linkage-editor) convert OBJECT into EXECUTABLE
DB2 BIND - proofs dbrm against db2 catelog.

pre-compile, compile, linkedit are done without db2 running.
you need db2 to perform a db2 bind.

and no, that is not a definitive list of everything that goes on. but was a little more expansive and correct than what you stated.
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
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
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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