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

Db2 - 803


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

New User


Joined: 30 Apr 2014
Posts: 6
Location: USA

PostPosted: Thu May 01, 2014 12:20 am
Reply with quote

I have a COBOL DB2 stored procedure XYZ to insert records into tables P (parent), C1 (child1) and C2 (child2). P has unique key index on seq_num_p. XYZ doesnt do a commit or rollback after inserts and expects the calling process to do it.

I have a batch cobol program ABC that reads an input file and for each record read it call XYZ. When I execute ABC thru a regular job, it abends with -803 on table P. But when I execute ABC thru xpediter, it doesnt abend and executes successfully.

I have a CICS cobol program EFG which calls XYZ for 1 record at a time (per transacation). This works fine too and no issues are encountered.

Could anyone, help me understand why I get a -803 when XYZ is called multiple times. The input file doesnt have any duplicates or any of that sort.

Thanks, Gopi
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu May 01, 2014 1:17 am
Reply with quote

Make sure that the package(s) for your batch plan are bound to the same table(s) as for CICS and XPEDITOR.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Thu May 01, 2014 1:00 pm
Reply with quote

check the schema qualifiers
Back to top
View user's profile Send private message
kinatingopi

New User


Joined: 30 Apr 2014
Posts: 6
Location: USA

PostPosted: Sat May 03, 2014 2:34 am
Reply with quote

Thank you. It was a coding issue which was fixed.
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

 


Search our Forums:

Back to Top