what happend with out using Commit,when closing cursor and
program?

Answer Posted / harish

yes, commit-it will save the changes that we done to db2
table

when operation is performed successfully table will be auto
committed its default,suppose if any abends occur all
changes will be rolled back , table will come to original
status

since while updating millions of records somewhere some
abend occurs that time its better to have commit ,so till
upto abend whatever changes occured in table will be
saved.....

pls let me know if u have any queries

HARISH POOMGAME SHIVAPPA
NIIT TECHNOLOGY
KOLKATA

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

620


How can you find out the # of rows updated after an update statement?

631


List out the data types available.

694


How do I import data from excel to db2?

607


What is the cobol picture clause of the db2 data types date, time, timestamp?

605






Name the various locking levels available?

625


What is the maximum size of varchar data type in db2?

638


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

734


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

577


What are the contents of a dclmgen?

622


Define declaration generator (dclgen).

660


Why do we need reorg in db2?

555


What is db2 plan table?

610


What is copy pending and check pending in db2?

570


What is release/acquire in bind?

641