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 Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
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
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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