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



WHERE DO WE USE COMIT KEYWORD IN AN RPG PROGRAM? YOU MADE SOME CHANGES TO DATABASE BUT YOU DON'..

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

WHERE DO WE USE COMIT KEYWORD IN AN RPG PROGRAM? YOU MADE SOME CHANGES TO DATABASE BUT YOU DON'..

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

Post New Answer

More RPG400 Interview Questions

what is kids-rpg?

0 Answers   IBM,


What will happen if we r using seton lr after return or vice versa.

5 Answers  


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?

0 Answers  


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

0 Answers  


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?

2 Answers  






what is mean by *MAP and *DROP?what commands use these two keywords?why are they used?

4 Answers  


Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?

4 Answers   IBM,


in which journalling which attributes are necessary

2 Answers   CTS,


What is Multi Occurrence Data Structure(MODS)?

1 Answers   CTS,


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

1 Answers  


what is a rpg?

0 Answers   IBM,


Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.

7 Answers  


Categories