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

-804 error in subprogram


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

New User


Joined: 24 Oct 2006
Posts: 32
Location: India

PostPosted: Tue Oct 16, 2007 2:22 pm
Reply with quote

Hi All,

I have an issue which is -804 this DB2 error message happens after the first queary of my sub program executes (Open cursor).This was a production code which is active and running daily with out any abend,

i get this error for a particular record in our test region.Can any one of you give a solution how to resolve it.

Thanks
Baskaran
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Tue Oct 16, 2007 3:02 pm
Reply with quote

The reason for -804 is:

An error occurred while processing the current request.

-The call parameter list, which is created by the precompiler, may not be correct if the application programmer has modified the output of the precompiler or over-written the call parameter list in another way.
-The SQLDA or host variable(s) in the SQL statement are invalid.
-The request being made is not supported or is out of context.
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Tue Oct 16, 2007 3:17 pm
Reply with quote

Also check the the values u have passed for the host variables of the cursor..
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Oct 16, 2007 3:17 pm
Reply with quote

Hi Baskaran,

Please provide the reason code as well or paste the spool message.
Back to top
View user's profile Send private message
Baskaran
Warnings : 1

New User


Joined: 24 Oct 2006
Posts: 32
Location: India

PostPosted: Tue Oct 16, 2007 5:14 pm
Reply with quote

The reason code i got was reson code = 06 ,i have a checked with host variable too,Since it is production code there is no changes in host variable.
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Tue Oct 16, 2007 5:19 pm
Reply with quote

Check the data in host variables, whether it is a valid value or not.
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top