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

Answer Posted / avinash

suppose we have to update 1000 of recrds in my cobol db2
program and my program is running fine and it has updated
999 records but the job gets abended in this scenario my
work is not commited or completed so again i have to submit
a job and again it starts updating from record 1.

so to avoid such scenario commit and rollback is used.
so if we set commit point at every 200 records then it will
update the records in 200*5=1000
so if job abends on 999 records then it rooback to the
records from 800 to 1000.
so cpu time will be less.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2603


what is program status data structure?

1559


How would display prime numbers using CL program?

5805


explain sflclr, sflend, sfldlt, and sflcsrrrn?

973


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

815






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

1389


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

643


what is the rpg system?

767


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

1639


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


what is the procedure and explain about real time scenario.

1566


Explain mdt?

764


what are the key words you must use when using a subfile?

777


how do I preserve and clean the array?

748


can you debug ile rpg program using isdb?

825