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
 

 

DB2 commit occured after abend in pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
anatol

New User


Joined: 20 May 2010
Posts: 99
Location: canada

PostPosted: Fri Apr 29, 2011 5:28 pm    Post subject: DB2 commit occured after abend in pgm
Reply with quote

I have PLI DB2 pgm, which updated the table. The problem is : if pgm failed, there is no DB2 rollback. I don't use commit comand in my pgm. I've forced abend in pgm right after first update in test. The result - DB2 commit occured, row was updated. Please advice, what may cause this problem.
Thanks
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Apr 29, 2011 5:33 pm    Post subject: Reply to: DB2 commit occured after abend in pgm
Reply with quote

kind of hard to believe!

not likely to be solved remotely ...
too many questions to ask
too much data to be collected posted and analyzed

the road to go is Your support!
Back to top
View user's profile Send private message
anatol

New User


Joined: 20 May 2010
Posts: 99
Location: canada

PostPosted: Fri Apr 29, 2011 5:44 pm    Post subject: Reply to: DB2 commit occured after abend in pgm
Reply with quote

I agree, it is like I doubt that 2*2=4 , but it is test result and I have it. Test was simple - abend right after first update and ...ops. I can provide any aditional info, just want to believe again, that 2+2 = 4
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Apr 29, 2011 5:48 pm    Post subject: Reply to: DB2 commit occured after abend in pgm
Reply with quote

since You are sure, no reason for anybody to waste time on a DB2 error icon_cool.gif

odd that You are the first one to notice

time to get Your support involved and escalate the issue to IBM
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 641
Location: Whitby, ON, Canada

PostPosted: Fri Apr 29, 2011 6:35 pm    Post subject:
Reply with quote

Are you 100% sure that the program really abended? i.e. that no other process intercepted the abend request and turned it into something else?
Back to top
View user's profile Send private message
anatol

New User


Joined: 20 May 2010
Posts: 99
Location: canada

PostPosted: Fri Apr 29, 2011 9:42 pm    Post subject: Reply to: DB2 commit occured after abend in pgm
Reply with quote

I've usedh STOP comand ( pgm is PLI) after sql update... it abended with 1000 and commit the update
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


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

PostPosted: Fri Apr 29, 2011 9:51 pm    Post subject: Re: Reply to: DB2 commit occured after abend in pgm
Reply with quote

anatol wrote:
I've usedh STOP comand ( pgm is PLI) after sql update... it abended with 1000 and commit the update

That is not an abend! icon_evil.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Apr 29, 2011 10:02 pm    Post subject: Reply to: DB2 commit occured after abend in pgm
Reply with quote

as I imagined You wasted everybodys time

I just run a quick test with the hello world
Code:
000049 //HELLO1  EXEC IBMZCPL
000050 //C.SYSIN   DD *
000051  HELLO: PROCEDURE OPTIONS(MAIN);
000052    PUT SKIP LIST ("HELLO, WORLD FROM PL/I !");
000053  END HELLO;
000054 //HELLO2  EXEC IBMZCPL
000055 //C.SYSIN   DD *
000056  HELLO: PROCEDURE OPTIONS(MAIN);
000057    PUT SKIP LIST ("HELLO, WORLD FROM PL/I !");
000058    STOP ;
000059  END HELLO;
....
IEF142I ENRICO1 GO HELLO1 - STEP WAS EXECUTED - COND CODE 0000
....
IEF142I ENRICO1 GO HELLO2 - STEP WAS EXECUTED - COND CODE 1000



hello1 ended with a cond code 0
hello2 ended with a cond code 1000

it would be wise, to review Your perception of Your skill level
from Your profile
Quote:
Mainframe Skills: good


too high for somebody who cannot distinguish a non zero return code from an abend
let' s not talk about Your self confidence icon_evil.gif
Back to top
View user's profile Send private message
anatol

New User


Joined: 20 May 2010
Posts: 99
Location: canada

PostPosted: Fri Apr 29, 2011 10:30 pm    Post subject:
Reply with quote

sorry, Enrico... you suggest ME not wasting anybody time ... and then question MVS knowled level of Akatsukami - I hope icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Apr 29, 2011 10:49 pm    Post subject: Reply to: DB2 commit occured after abend in pgm
Reply with quote

I suggested that You wasted everybody' s time, yes very true

but... where in my post, by grace, did I question Akatsukami' s competence

am I questioning Your attitude ? certainly yes

the quick test I run was intended to show You the difference between return/cond code and abend
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Fri Apr 29, 2011 10:57 pm    Post subject:
Reply with quote

If you want to force an abend then signal error.
Back to top
View user's profile Send private message
anatol

New User


Joined: 20 May 2010
Posts: 99
Location: canada

PostPosted: Fri Apr 29, 2011 11:07 pm    Post subject:
Reply with quote

ok, now you convinced me ... I've changed the profile lol
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 641
Location: Whitby, ON, Canada

PostPosted: Fri Apr 29, 2011 11:14 pm    Post subject: Re: Reply to: DB2 commit occured after abend in pgm
Reply with quote

Akatsukami wrote:
anatol wrote:
I've usedh STOP comand ( pgm is PLI) after sql update... it abended with 1000 and commit the update

That is not an abend! icon_evil.gif
LOL! I knew it had to be something like that. I am not a PLI guy or I would have asked the TS a more specific question. icon_lol.gif
Back to top
View user's profile Send private message
anatol

New User


Joined: 20 May 2010
Posts: 99
Location: canada

PostPosted: Fri Apr 29, 2011 11:28 pm    Post subject:
Reply with quote

btw... signal error right after insert ( ON error block has only ON ERROR SYSTEM) :
Current Condition:
IBM0280S The ERROR condition was raised by a SIGNAL statement.

checking table - row inserted ... no need to answer this topic, just for fyi before close the topic.[/code]
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts S213-14 ABEND explantion Apurva Mehta JCL & VSAM 5 Thu Jul 07, 2016 10:56 pm
No new posts How to determine where is error in ab... jackzhang75 PL/I & Assembler 13 Fri Apr 15, 2016 2:01 am


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