Suppose in a program few records have been inserted/updated and commit has not been issued. I would like to know what happens when the program encounters S0C4, S0C7 or other abend. Does a rollback happens or not.
As per my understanding if we don't issue an explicit commit in the program the commit will happen only after successful execution of the program and any abend will make the transactions rolled back as the program is terminated abnormally.
Please confirm if my understanding is correct or not.