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
 

 

Query related to Cobol-DB2 program.

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

New User


Joined: 01 Dec 2006
Posts: 21
Location: Gurgaon

PostPosted: Mon Jan 19, 2009 12:37 pm    Post subject: Query related to Cobol-DB2 program.
Reply with quote

I have a query. Suppose there is Cobol + DB2 program and is working perfectly fine. Suppose according to new requirements we need some changes in the SQL part. we precompiled it and is it necessary to compile the cobol part as we have not made any changes to it.

what will happen if we will not compile the code?
Back to top
View user's profile Send private message

ameenansari

New User


Joined: 18 Sep 2006
Posts: 11
Location: chennai

PostPosted: Mon Jan 19, 2009 12:56 pm    Post subject:
Reply with quote

Hi,

You have to compile,link, and bind the modified cobol-db2 pgm. If not you will get -818.

-Ameen
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Mon Jan 19, 2009 1:42 pm    Post subject:
Reply with quote

Pre-compiling creates 2 parts with similiar 'Stamps' (timestamp/consistency token as we call it), one with plain cobol statements and the other with DB2 statements. Compiling the Cobol part will make the load module "look" for the DBRM which has the latest timestamp. If you do not compile it, the load module will look for a DBRM with the timestamp it has(which is not the latest).

This will cause -818.
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