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

Getting a sql error with error code -805


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajdsi

New User


Joined: 09 May 2008
Posts: 1
Location: bangalore

PostPosted: Fri Aug 22, 2008 2:23 pm
Reply with quote

hi,

i am able to compile the program successfully but while running from cics i am getting a sql error with error code -805.

can anybody help me in rectifying the problem.


Thank you in advance..
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Aug 22, 2008 2:39 pm
Reply with quote

Raj,

Quote:
i am able to compile the program successfully but while running from cics i am getting a sql error with error code -805.


From QW

Quote:
Explanation: An application program attempted to use a DBRM or package
location-name.collection-id.dbrm-name.consistency-token that was not
found.


The DBRM or package is not found in the plan. Re-bind the DBRM and test again.
Back to top
View user's profile Send private message
gcvivekkrishnan

New User


Joined: 18 Apr 2008
Posts: 1
Location: India

PostPosted: Tue Aug 26, 2008 6:34 pm
Reply with quote

hi

for -805 try these

* Bind the program 'program name' as the member part of the application plan 'plan name' or
* Correct the collection id in the PKLIST and bind the application plan 'plan name' or
* Set the current package set special register correctly or
* Put the correct 'location name' in the CURRENTSERVER of the BIND command and bind the application plan 'plan name' or
* Connect to the correct RDB name or
* Correct the location id in the PKLIST and bind the application plan 'plan name' or
* Bind the DBRM of the version of the application program to be executed
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 26, 2008 6:47 pm
Reply with quote

you might try a new copy before you go thru all the other silliness suggested.
Back to top
View user's profile Send private message
gauravd01

New User


Joined: 25 Aug 2008
Posts: 14
Location: india

PostPosted: Tue Aug 26, 2008 8:19 pm
Reply with quote

Thanks for this usefull information.... icon_smile.gif
Back to top
View user's profile Send private message
AJAYREDDY

New User


Joined: 17 Feb 2007
Posts: 52
Location: USA

PostPosted: Wed Aug 27, 2008 9:56 pm
Reply with quote

Hi rajdsi,

Are you able to resolve this problem? Once you have done compiling and NEW COPY in CICS region and still you are getting same error, check the CICS job concatenation libraries in the JOB SPOOL. You will get it by command PRE CICS* in SDSF (Commands vary with installation, please check).

Select the CICS Job which region you are running and check all the LOADLIB (Load Libararies). You should have your program in "first occurence" of load library concatenation. If not, then you should BIND the program package with the same TIMESTAMP of the "first occurence" of LOAD.

Thanks
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top