MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DB2 Data locking problem

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Wed Aug 27, 2008 1:49 pm    Post subject: DB2 Data locking problem Reply with quote

I have a situation where in an operator is currently updating a record from CICS/Web screen and while this update is going on, Batch job tries to unload Table.


Now, Currently we don't retrieve the record being updated since it is locked and we want to retrieve the being updated.

We are fine even if the we get record in old state before it was updated. i.e. record in its initial state before updation.

Code:

SHRLEVEL       CHANGE   
LOAD-CONTROL   Load lib name 
SQL-ACCESS     ONLY     
PRINT-OPTIONS  PTIMSG   
OUTPUT-FORMAT  DSNTIAUL
DISPLAY-STATUS 500000,I


Is there any way to retrieve the record being updated?

Thanks,
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Aug 27, 2008 3:04 pm    Post subject: Reply with quote

rajen,

Code the SQL the clause WITH UR in the unload sysin and you will get the initial state record.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Wed Aug 27, 2008 5:26 pm    Post subject: Reply with quote

Kolusu,
I did try that earlier.

Unload query is

SELECT Col1,Col2
from table
where condition
for fetch only with ur;

Actually that's the first option I tried but still it is not retrieving record being hold for update.

Thanks,
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Aug 28, 2008 11:02 am    Post subject: Reply with quote

rajen,

May be by the time unload got hold of the record your where clause has omitted it?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Aug 28, 2008 11:11 am    Post subject: Reply with quote

what utility are you using?

maybe it is not sophisticated enough to handle the situation.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Thu Aug 28, 2008 1:13 pm    Post subject: Reply with quote

Dick,
we are using PLATINUM.


Kolusu,
Even though we unload based on timestamp value, the record in question would still be qualify for WHERE Clause.


Thanks,
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Aug 29, 2008 2:29 am    Post subject: Reply with quote

PLATINUM is capable of this; sounds like you need to look at the doc (or what until an experienced PLATINUM user answers), or ask your support people.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Fri Aug 29, 2008 9:47 am    Post subject: Reply with quote

Dick,
I knew PLATINUM is capable of doing this and I think (though not positive) it can be achieved with Unload Card Parameter but none of the option seems to be working.
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Fri Aug 29, 2008 10:06 am    Post subject: Reply with quote

Have you tried this with DB2's UNLOAD or DSNTIAUL? Some of the 3rd party products go through the back door and read the underlying VSAM datasets directly. I'd try something from IBM if you can't resolve this with CA's product.
Back to top
View user's profile Send private message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Fri Aug 29, 2008 4:35 pm    Post subject: Reply with quote

Hi,
I did try DSNTIAUL. And by back door if you mean ACCESSING VSAM datasets then I guess I have tried that.

That was SHRLEVEL EXTENSION option if i have not misunderstood you.
Back to top
View user's profile Send private message
Sqlcode
Intermediate


Joined: 15 Dec 2006
Posts: 157
Topics: 38

PostPosted: Fri Aug 29, 2008 4:38 pm    Post subject: Reply with quote

FYI...

Sorry forgot to mention I even tried SHRLEVEL VSAM as well.

It didn't work either.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group