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

Diff between -805 and -818


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mfhelp
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 33

PostPosted: Tue Apr 01, 2008 3:26 pm
Reply with quote

What is the difference between -805 and -818 SQL code........can we really face -818 in real projects??
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Tue Apr 01, 2008 4:04 pm
Reply with quote

What does your manual say?
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Apr 01, 2008 4:19 pm
Reply with quote

Hi !

First: nothing found in Plan.
Second: Found in Plan but TS is different.

And as gnanas said: RTMF

Regards, UmeySan
Back to top
View user's profile Send private message
zero

New User


Joined: 01 Dec 2007
Posts: 21
Location: Hyderabad

PostPosted: Tue Apr 01, 2008 5:47 pm
Reply with quote

The descriptions for -805 and -818 are :

SQLCODE -805 : DBRM OR PACKAGE NAME NOT FOUND IN PLAN

SQLCODE -818 : THE PRECOMPILER-GENERATED TIMESTAMP IN THE LOAD MODULE IS DIFFERENT FROM THE BIND TIMESTAMP BUILT FROM THE DBRM.

As you know, all the SQL statements that are written in a program will be moved to DBRM (Data Base Request Module) and will be binded and then stored in a Package/Plan.

if a DB2 Program is not compiled properly, and if we try to run it -805 will be generated.

now, coming to SQLCODE : -818. As you know, when a DB2 Program is compiled, two entities will be created at the end of compilation.

1. Load module which contains just the source language statements.

2. Plan/Package that contains all the SQL statements in executable
format that are coded in the program. (When a DBRM is binded, the
executable form Of the SQL statements will be created and stored in
Plan/Package.

To make sure that the program calls the correct SQL statements, we
use an identifier in both the Load module and Plan/Package. Generally,
a timestamp is used for this purpose. this is the default.
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 Sort on different fields, removing du... SYNCSORT 8
No new posts How syntax check at Bind time is diff... DB2 5
No new posts Compare PD Values with same storage &... JCL & VSAM 5
No new posts merge records from 2 ps files with di... DFSORT/ICETOOL 6
No new posts Need help on SORT to write each input... JCL & VSAM 4
Search our Forums:

Back to Top