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
 

 

Getting a sql error with error code -805

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Getting a sql error with error code -805
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: 1288
Location: Chennai, India

PostPosted: Fri Aug 22, 2008 2:39 pm    Post subject: Reply to: db2 plan error
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Tue Aug 26, 2008 6:47 pm    Post subject:
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: 11
Location: india

PostPosted: Tue Aug 26, 2008 8:19 pm    Post subject: Hi Vivek,
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: 47
Location: USA

PostPosted: Wed Aug 27, 2008 9:56 pm    Post subject: Getting a sql error with error code -805
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


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