what is commit & rollback? When and where is used while
compiling a cobol-db2 program?
Answers were Sorted based on User's Feedback
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 |
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 |
How can tablespace be moved to another dasd volume that is allocated for that tablespace?
What are some characteristics of columns that benefit from indexes?
how can u nderstand the sql stmts executed successfully or not ?
What is dbrm? When it will be created?
What is cursor stability in db2?
What happens in bind step in a db2 program?
how to fetch multiple records without using cursor
What else is there in the PLAN apart from the access path?
What is db2 optimizer?
What is a cursor in programming?
What does CURRENTDATA option in bind indicate
How would one remove old reorg information from the DB2 catalog?