Scenarios and examples: Commitment control
These scenarios and examples show how one company sets up commitment control. Code examples for programs that use commitment control are also included in this topic collection.
The following scenario shows how the JKL toy company implements commitment control to track transactions on its local database.
The following examples provide sample code for commitment control. The practice problem is an RPG program that implements commitment control. It includes a logic flow that shows what is happening each step of the way.
- Scenario: Commitment control
The JKL Toy Company uses commitment control to protect the database records for manufacturing and inventory. This scenario shows how JKL toy company uses commitment control to transfer a part from its inventory department to its manufacturing department.
- Practice problem for commitment control
This practice problem might help you understand commitment control and its requirements. These steps assume that you are familiar with the i5/OS® licensed program, the data file utility (DFU), and this topic collection.
- Example: Using a transaction logging file to start an application
This example provides sample code and instructions of how to use a transaction logging file to start an application after an abnormal end.
- Example: Using a notify object to start an application
When a program is started after an abnormal end, it can look for an entry in the notify object. If the entry exists, the program can start a transaction again. After the transaction has been started again, the notify object is cleared by the program to prevent it from starting the same transaction yet another time.
- Example: Using a standard processing program to start an application
A standard processing program is one way to start your application again using one database file as the notify object for all applications. This approach assumes that user profile names are unique by user for all applications using the standard program.
Parent topic:
Commitment control