i want to know how the commit option works,how it save the
changes? it will update the database or what ? where we can
see these saved changes?

Answers were Sorted based on User's Feedback



i want to know how the commit option works,how it save the changes? it will update the database or..

Answer / kk

Hi,
Mostly we are using commit mass insert and update time
only.suppose i insert 1000 records i am using count varable
i give commit every 100th records means it will
automatically update the data base.so it will affect 999th
records means 900 records ulready update in ur table.so we
can restart 901 records thats enough.you can see in ur
table.

Is This Answer Correct ?    6 Yes 2 No

i want to know how the commit option works,how it save the changes? it will update the database or..

Answer / sankar

All changes happens to database are initially made in log,
after successful completion of unit of work (COMMIT),the
changes from log reflected into physical database. In case
of roll-back or un-successful completion, changes will not
be reflested into physical database.

Commit executed at the end of all transaction (explicitly
or inplicitly) irrespective of number of rows affected.

Is This Answer Correct ?    6 Yes 2 No

i want to know how the commit option works,how it save the changes? it will update the database or..

Answer / era

commit will insert a unit of work after some define number
of record processed. That commit point will be taken and
the database updated.

Is This Answer Correct ?    0 Yes 0 No

i want to know how the commit option works,how it save the changes? it will update the database or..

Answer / kalyan

hi kk
how will restart from 901th record?
please explain

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

What are the contents of dclgen?

0 Answers  


What is DYNSLT keyword? How do you perform selection using DYNSLT

1 Answers  


What does the RUNSTATS Utility do?

4 Answers  


i know the stpes 2 create an executable CICS/DB2 cobol code. 1. DB2 Precompiler converts the SQL Statements into COBOL API statements and creates another member with Acess plans. CodeA results in CodeB (code with API calls) & CodeC ( Access Plans ) 2.Code B is compiled/linked 2 create an exceutable.(codeE) 3.Now CodeC is binded to the database on which CodeE will be run. Can somebody provide me the sample JCLs for precompile/compile/link/bind.

0 Answers  


Hi All, In a Cobol-DB2 program, I am fetching rows from 4 tables using cursor and then based on the a field present in that table, It processes the information accordingly..for example stat-c is one digit field..if stat-c is 'D' then the a row is deleted from table and written those details in to a file. If the stat-c is 'U' then a row is updated (hardcoded what to update)in a table and written those details in to a file. If the stat-c is 'I' then a row is inserted in a table and written those details in to two files. The issue is i have to include the intermediate commits. When an abend occurs, due to commit statement db2 tables will be saved, But there will be lose of file contents. When we resubmitting the job associated with this program there will be insert ,update and delete anomolies to avoid that what measures could be taken?. The intermediate commit is nothing but issuing commit after massive inserts, updates and deletes(sum of 500actions)

1 Answers  






What is meant by repeatable read?

4 Answers  


Explain about open switch business continuity software?

0 Answers  


what is differnece between DROP TABLE & DELETE TABLE .

4 Answers   Cap Gemini,


what is datacom db?

2 Answers   CSC,


How many Buffer pools are there in DB2 and what are they?

1 Answers   IBM,


what is contained in the DB2 node lock file? A) data base names B) data base users names C) license keys D) server names

5 Answers   Accenture,


How can i install db2 9.x on AIX based system..? plz reply the detailed steps involved....?

0 Answers   IBM, TCS,


Categories