Previous Topic: Readying AreasNext Topic: Function Execution Sequence


Terminating a Database Session

Once the application program has completed its work, it must end the database session. It does so by using either a FINISH or ROLLBACK function.

The FINISH function commits (makes permanent) all changes made to the database by the application, releases use of the database areas, and terminates the run unit. A FINISH function is used to end an application's successful use of the database.

The ROLLBACK function rolls out (reverses) all changes made to the database and then terminates the run unit. It is used to end an application's use of the database when some type of error is detected.