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

Binding problem


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

New User


Joined: 01 Feb 2010
Posts: 5
Location: coimbatore

PostPosted: Mon Mar 08, 2010 11:51 am
Reply with quote

Hi, I am getting the sqlcode=-805. what do u mean by bind problem. how to rebound it.
Back to top
View user's profile Send private message
Gnanas N

Active Member


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

PostPosted: Mon Mar 08, 2010 12:58 pm
Reply with quote

Hi,

Please visit this link and take the action as suggested for your reason code.
An application program attempted to use a DBRM or package 'location-name.collection-id.dbrm-name.consistency-token' that was not found.
Back to top
View user's profile Send private message
Ragav86

New User


Joined: 27 Jan 2010
Posts: 37
Location: chennai

PostPosted: Mon Mar 08, 2010 10:18 pm
Reply with quote

it mean the expected package was not found in db2(this may be the one of the reason).


check whether the consistency token in the program load module and consistency token in the db2 are matching. if not bind your dbrm again using bind package statement or using DB2I (BIND PACKAGE STATEMENT).

way to find out token.
1. go to your precompiled output of your program for every sql query some varibales will be automatically declered by your precompiler in working storage with the name of SQL-PLIST.(not sure about the name check it out)
this will have the timestamp of the load module, convert this to hex using select hex(time1),hex(time2) from sysibm.sysdummy1.

2. select hex(contoken) from sysibm.syspackage where name ='pack name';
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top