If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > update table out of uow

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-04, 12:04
fsauca fsauca is offline
Registered User
 
Join Date: Oct 2004
Posts: 3
update table out of uow

Is it possible to have an operation out of the unit of work?

I need to update a table regardless of the result of the whole uow. If, for any reason, I have to roll back, that update must be persistent.

DB2 v7 on zOS
Reply With Quote
  #2 (permalink)  
Old 10-26-04, 12:43
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I believe that you can START a new CICS tran asynchronously from your main program (passing the data needed to make the update), which will have a different unit of work. I did this about 10 years ago. Of course, if you are not using CICS in your main program, that may not very be convenient.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 10-26-04, 13:28
fsauca fsauca is offline
Registered User
 
Join Date: Oct 2004
Posts: 3
I cannot use any CICS sentences in my "subprogram"; only the main program is allowed to.

My question was more directed to DB/2, because I think I heard something like you can put a table out of the scope of the unit of work.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On