Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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 ?

1 Answers   TCS,


Write a program to display prime numbers between 1 to 100 using RPGLE.

1 Answers  


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

6 Answers  


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.

0 Answers  


can you debug ile rpg program using isdb?

0 Answers   IBM,


What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?

3 Answers   HSBC, IBM,


How do you call procedures in ILE?

3 Answers  


what is edit word and edit code

0 Answers   Cap Gemini,


how do I do concatenation in rpg iv, like I do in cl?

1 Answers   IBM,


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

0 Answers  


I know chain keyword retreive records randomly but how chain keyword exactly works internally????

4 Answers  


can we use cl programming to update or delete physical files

12 Answers  


Categories