what is commit & rollback? When and where is used while
compiling a cobol-db2 program?

Answers were Sorted based on User's Feedback



what is commit & rollback? When and where is used while compiling a cobol-db2 program?..

Answer / naveen

Commit is used when the changein the record is to be made
permanent.
It is coded in Cobol-DB2 program after some frequency of
record is processed.

Rollback is Issued by the DB2 system/will be coded by User
when it any abends/errors occurs while processing.

Is This Answer Correct ?    8 Yes 2 No

what is commit & rollback? When and where is used while compiling a cobol-db2 program?..

Answer / karthikeyan

Commit:After end of the every permanent Transaction we used
commit.This is most probably used used for record tracking
purpose in the issue log.

Rollback:If any error occur during ur transaction (ex: any
data error) ur procedure will autoimatically call the
rollback procedure and it rollback all the stored record
from the table.u want to use the save point concept while
using the rollback.

Is This Answer Correct ?    8 Yes 4 No

Post New Answer

More DB2 Interview Questions

While creating a table, by mistake you have given size of one field as 10. But as per requirement size should be 8. What is your next step?

4 Answers   CTS, IBM,


what is the role of the cursor in db2?

1 Answers  


select 100 records from million records ?

2 Answers   Verizon,


What is rebind in db2?

1 Answers  


How is a typical DB2 batch program executed ?

1 Answers  


How do you Load a table ?? and what is Load replace ?

2 Answers   Xansa,


For Read Stability locks are not applicable for phantoms, What is Phantoms?

2 Answers  


What is host variable in db2 cobol?

1 Answers  


What is a page in db2?

1 Answers  


What are common abends

1 Answers   SPIC, Virtusa,


what is a trigger and types of triggers

3 Answers   HSBC,


What is db2?

1 Answers  


Categories