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

Updating uncommitted row


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

New User


Joined: 11 Jul 2010
Posts: 21
Location: Bangalore

PostPosted: Thu Feb 03, 2011 4:10 pm
Reply with quote

I have to update a row inserts by another process, but row insert is uncommitted. Detailed explanation below

One process inserts a row to table, but before commtting row insert it calls my process. And my process have to update one column of this row and then will return control back to the first process. Then first process will committ all changes.

My question is, is it possible to update a column which is uncommitted as explained above?
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Feb 03, 2011 4:30 pm
Reply with quote

what kind of call ?
If we're talking COBOL : all calls run in the same thread / same Logical unit of work, so no problem there.

if we're talking about different java threads to DB2 , then it's a different story
Back to top
View user's profile Send private message
anju subrahmanian

New User


Joined: 11 Jul 2010
Posts: 21
Location: Bangalore

PostPosted: Thu Feb 03, 2011 4:59 pm
Reply with quote

Application which calls my process is a .Net front end application
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 03, 2011 5:30 pm
Reply with quote

Quote:
Application which calls my process is a .Net front end application



absolutly no information.....

is this a question?

did you not understand what GuyC tried to explain?

process is a term used to describe something.

a process is not called. a process is.

use the correct terminology and you will get an answer.
(the exercise of determining the correct terminology will probably provide you the answer.)
Back to top
View user's profile Send private message
anju subrahmanian

New User


Joined: 11 Jul 2010
Posts: 21
Location: Bangalore

PostPosted: Thu Feb 03, 2011 5:45 pm
Reply with quote

.Net front end aplication inserts a row to table, but before commtting row insert it calls my CICS program. And my program have to update one column of this row and then will return control back to .Net application. Then .Net application will committ all changes.

Sorry for using wrong terminologies...........
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 03, 2011 6:32 pm
Reply with quote

anju subrahmanian,

excellent explanation. (hope my answer is also)

now the .net front end INSERT creates a task on the mainframe.

the invocation of the CICS program is a second task.

The second has no update access to the first.

why don't you get the info from the CICS program first, then insert the row?

or

use a stored procedure
  • to perform the cics program stuff
  • make the insert


or

.net makes the insert
.net commits
.net calls cics
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

 


Similar Topics
Topic Forum Replies
No new posts Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
No new posts Updating endevor JCLs CA Products 5
No new posts Updating DFSMShsm DB when objects are... JCL & VSAM 0
No new posts Query on updating the control cards. DFSORT/ICETOOL 2
This topic is locked: you cannot edit posts or make replies. Query on updating the control cards. JCL & VSAM 2
Search our Forums:

Back to Top