IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

Getting a sql error with error code -805

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> Mainframe COBOL
View previous topic :: View next topic  
Author Message
rajdsi



Joined: 09 May 2008
Posts: 1
Location: bangalore

Posted: Fri Aug 22, 2008 2:23 pm    Post subject: Getting a sql error with error code -805  

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  
Aaru



Joined: 03 Jul 2007
Posts: 1148
Location: Mumbai - India

Posted: Fri Aug 22, 2008 2:39 pm    Post subject: Reply to: db2 plan error  

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  
gcvivekkrishnan



Joined: 18 Apr 2008
Posts: 1
Location: India

Posted: Tue Aug 26, 2008 6:34 pm    Post subject:  

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  
dbzTHEdinosauer



Joined: 20 Oct 2006
Posts: 1639
Location: germany

Posted: Tue Aug 26, 2008 6:47 pm    Post subject:  

you might try a new copy before you go thru all the other silliness suggested.
Back to top  
gauravd01



Joined: 25 Aug 2008
Posts: 2
Location: india

Posted: Tue Aug 26, 2008 8:19 pm    Post subject: Hi Vivek,  

Thanks for this usefull information.... :)
Back to top  
AJAYREDDY



Joined: 17 Feb 2007
Posts: 24
Location: USA

Posted: Wed Aug 27, 2008 9:56 pm    Post subject: Getting a sql error with error code -805  

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  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> Mainframe COBOL
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM