Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us