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

on line ok but batch gets -904


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

New User


Joined: 16 Sep 2008
Posts: 19
Location: illinois

PostPosted: Wed Dec 16, 2009 12:25 am
Reply with quote

We have a random number generator program that is called by the on-line transactions. This program fetches and updates the next available number from a DB2 table. The on-line transactions always come back with the number and never a -904. We recently installed a batch program that also calls the random number generator, but it is plagued with -904s. Has anyone experienced this and resolved it?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Wed Dec 16, 2009 12:34 am
Reply with quote

what does the manual say about a -904 error code ?
read the manual and act accordingly to it' s suggestions
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1248
Location: Richfield, MN, USA

PostPosted: Wed Dec 16, 2009 10:16 am
Reply with quote

Also, "random number" and "next available number" seem to be contradictory.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed Dec 16, 2009 2:24 pm
Reply with quote

Hi xsray,

Please post full error text with the reason code.

Sushanth
Back to top
View user's profile Send private message
Lijo

New User


Joined: 24 Aug 2008
Posts: 41
Location: Cochin

PostPosted: Wed Dec 16, 2009 3:08 pm
Reply with quote

As said look into the Manual. Look for the REASON CODE (an 8 character value in the error message, like REASON 00C90084) under -904 SQLCODE. -904 can happen due to various reasons. Follow the instructions under 'User Response'.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Wed Dec 16, 2009 9:46 pm
Reply with quote

look at what the random number generator program does.
It probably updates/inserts some value in some table.

Replace this with db2 sequence.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts How to close Datacom MUF URT used by ... CICS 0
No new posts Activate WLM policy in batch All Other Mainframe Topics 2
No new posts creat new line command in front of Me... TSO/ISPF 4
No new posts MacKinney Batch to CICS upgrade causi... CICS 7
Search our Forums:


Back to Top