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
what is data area and how it is used in rpg program ?
what is the necessary keyword needed to scroll subfile records?
How would display prime numbers using CL program?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
How to call one program from another program in RPG? please help me with the code
What is the purpose of record level identifier?
What is a record lock error?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
how does the rpg element work?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
what do you mean by an input subfile, what are the keywords required?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
what is the use of sflnxtchg?