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 |
Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?
Write a program to display prime numbers between 1 to 100 using RPGLE.
i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL program
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
can you debug ile rpg program using isdb?
What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?
How do you call procedures in ILE?
what is edit word and edit code
how do I do concatenation in rpg iv, like I do in cl?
How to select highest score of each subject or how to select highest income of every month?
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
can we use cl programming to update or delete physical files