My program takes the input as file, and process those records one by one. Here I would like to add the commitment control, if any one record fails then roll back and continue with the next record. To test this, I need to lock the record in another session and to run the program to check the ROLBK. How to lock the record? I tried with UPDDTA and its not locking the record. So now I have written a record locking program to lock the required record when testing. Is there any other way to lock the specific record?