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

What are the Isolation levels possible ?

5 Answers  


How do I create a table MANAGER (EMP-NO, MANAGER) where MANAGER is a foreign key which references to EMP-NO in the same table? Give the exact DDL.

3 Answers  


can i code union in cobol-db2 pgm ?

4 Answers   Patni,


How do I add a column to an existing table in db2?

0 Answers  


What if , we failed to mentioed null indicator in sql select query , that may retrieve null value ?

2 Answers   Cap Gemini,






can we update the table by using cursors can anyone post the query?

5 Answers   DELL, HCL,


i have one file having 100 of records? i want to display it like 20 records in one column and 20 records in another column total 40 records per page ? how ?

2 Answers   EDS,


What is ibm db2 used for?

0 Answers  


what is the maximum number of tables that can be joined ?

8 Answers   IBM, TCS,


what are bind concepts in db2 cobol?

0 Answers  


Can you search give an array in the WHERE clause of a db2 query?

1 Answers  


Where are plans stored?

2 Answers  


Categories