WHERE DO WE USE COMIT KEYWORD IN AN RPG PROGRAM?
YOU MADE SOME CHANGES TO DATABASE BUT YOU DON'T WANT TO
SAVE THOSE CHANGES NOW? HOW DO YOU HANDLE THIS ONE?
Answers were Sorted based on User's Feedback
Answer / shobhit
Commitment Control is a function that allows processing a
group of changes in the file as a single operation.
If you want all the changes in file use COMMIT keyword else
use ROLLBACK.
Define COMMIT keyword in continuation line of F Spec(IPFK
spec) and COMMIT opcode in C spec.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / mansi walia
Scenario:
Suppose we have written a new record in a database file but
we want to check if the employee phone number has is not
entered then roll back the changes else comit.
Example:
Move SEmpName EmpName
Move SEmpAdd EmpAdd
Move SEmpPh EmpPh
Write EmpRec
If EmpPh <> *Zeros
COMIT
else
RollBack
EndIf
| Is This Answer Correct ? | 1 Yes | 1 No |
Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?
What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?
check existence of one record without using chain or read?
What is the purpose of PUTOVR keyword?
In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding
4 Answers Infinite Computer Solutions,
When will DUMP & DEBUG be ignored?
How do you find whether a record is locked or not?
How can we receive values from a called procedure in RPG?
How do you know if a record exists without doing a READ and CHAIN?
What is the Record Address file. How can we use it in RPG program?
How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program
Can we trigger an rpg program which has user interaction with display file when updating a file using the command ADDPFTRG?