How Commitment and Roll back control is used in as400,
explain with real time senario ???

Answer Posted / garry

With commit/rollback we can ensure data consistency.

Consider a scearion where commit/rollback is not used.
Suppose your program writes/updates 10 files. In case the
program fails in between (say after updating 5 files),
there will be data in 5 files and corresponding data will
not be available in 5 files.

If we introduce commit/rollback in above program. In case
of program failure changes made to 5 files can be rolled
back so that we don't have inconsistency between files.

with Commit/rollback we can ensure either all files are
updated or not file is updated.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write record if no field or the field are different in physical file in rpgle ?

580


what is kids-rpg?

763


what was the robotech rpg?

760


what is the use of sflnxtchg?

894


what do you mean by an input subfile, what are the keywords required?

894






thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1981


how can I tell when to replace the array?

783


are there any useful c runtime apis that I can call from rpg iv?

785


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

868


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1639


what is file information data structure?

1541


How to handle duplicate error handling in RPG?

1824


How to select highest score of each subject or how to select highest income of every month?

1389


what is the procedure and explain about real time scenario.

1566


How can we override a file during runtime in rpg?

785