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 

SELECTIVE COMMIT

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


Joined: 21 Nov 2005
Posts: 31
Topics: 10
Location: Orange County, California

PostPosted: Mon Dec 30, 2013 2:03 pm    Post subject: SELECTIVE COMMIT Reply with quote

Is it possible to selectively commit work for individual tables within a COBOL batch DB2 program? I have a program that updates several tables, but I would like to commit only a few tables. This is a posting program which adds new participants to a database, so regardless of whether or not their other data is posted, I need their membership information to post. Question
_________________
Thanks,
PCMOONBEAM
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Mon Dec 30, 2013 4:07 pm    Post subject: Reply with quote

Not that i'm aware of.

You could write these entries to a temporary table, issue the commit and then add them to the "real" table, delete the temporary entries and commit.
_________________
All the best,

di


Last edited by papadi on Tue Dec 31, 2013 12:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Dec 31, 2013 11:22 am    Post subject: Re: SELECTIVE COMMIT Reply with quote

pcmoonbeam wrote:
Is it possible to selectively commit work for individual tables within a COBOL batch DB2 program? I have a program that updates several tables, but I would like to commit only a few tables. This is a posting program which adds new participants to a database, so regardless of whether or not their other data is posted, I need their membership information to post. Question


pcmoonbeam,

Update the tables you want to commit and store the other information in working storage area or temp table and then issue the commit.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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