IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Query related to Cobol-DB2 program.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top