I'm probably not explaining the context very well, but
I did find that if I set the isolation level on the select
statement within the stored procedure (using the WITH
clause, e.g., "WITH RR" for repeatable read) that
everything works as expected.
Maybe the isolation level in stored procedures is not
necessarily the same as it is on the client side (e.g.,
just because it's set to RR on the client side may not
mean that it's enforced that way in a stored procedure
that's invoked by the client).
Anyway, thanks again for your comments.
Bill
I'm not the one to claim user error easily, but that DB2 updates rows
without keeping an x-lock on it.... very unlikely.
Something in your story doesn't add up.
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab