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

Updating records without commit.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
AnuB
Currently Banned

New User


Joined: 29 Aug 2005
Posts: 33

PostPosted: Fri Sep 30, 2005 1:39 pm
Reply with quote

Hi,

In a COBOl-DB2 program /application , suppose one wants to update some records one after other without commit then what option has to be used there ?

Regards,
Anu.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Fri Sep 30, 2005 3:12 pm
Reply with quote

Hi,

Quote:
In a COBOl-DB2 program /application , suppose one wants to update some records one after other without commit then what option has to be used there
?

If I am recalling you correctly then you want to update recorde withiout using commit command.

Yes, Its possible. Whenever you donot mention Commit in your CObol program. It automatically save the updated records.


Hope this helps

Regards
Rupesh
Back to top
View user's profile Send private message
krishnaiahc

New User


Joined: 31 Aug 2005
Posts: 21

PostPosted: Fri Oct 28, 2005 6:40 am
Reply with quote

Hai,

Automately Commit the database before termate the program.

Thanks,
Krishna.
Back to top
View user's profile Send private message
dewrid

New User


Joined: 28 Oct 2005
Posts: 4

PostPosted: Mon Oct 31, 2005 3:22 pm
Reply with quote

If you dont issue an explicit COMMIT, then all changes made by the program are committed after the job terminates successfully. If the job abends, then the changes are rolled back.
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top