gtpa2m1k | Application Programming |
TPF transaction services support is designed to help application programmers by ensuring a consistent view of the database. A consistent view of the database helps in the following ways:
This overview of TPF transaction services includes discussions about defining the commit scope, requesting that data be written to the DASD surface, and understanding how to operate inside and outside the commit scope.
The term commit scope is used throughout this chapter to refer to a unit of work that groups together a set of database updates. These updates can then be written, or hardened, to the DASD surface as a group at the same time or rejected as a group (where no hardening takes place).
The application view of the commit scope is through the macro interface or application programming interface (API). Therefore, it is necessary to understand the macro API and how it is affected by the commit scope.