Documentation >
MAC-PAC Reference and Help >
Technical Support >
Key Concepts and Procedures >
Recovery Management >
Online Programs with No More Than 1,024 Updates and Single Mode
Online Programs with No More Than 1,024 Updates and Single Mode
Online programs that require more than 1 but not more than 1,024 updates per transaction and that run in only online mode use the Commitment Control Facility of the operating system. The following changes are required in both the RPG and control language (CL) programs that compose the job stream.
In the CL program:
· A begin commitment control command (BGNCMTCTL) is issued before the program call. This activates the Commitment Control environment.
· An end commitment control command (ENDCMTCTL) is issued after the program call. This deactivates the Commitment Control environment. This command is also placed in the error processing subroutine of the CL program.
In the RPG program:
· A KCOMIT is added to the file specifications for each update file that is being journaled. This keyword informs the operating system that the file is being used in a Commitment Control environment.
· Within the RPG code, COMIT statements are added in key places. These places are chosen so that all pertinent updates are contained within the commitment boundary. Because the operating system imposes a limit of 1,024 updates, these places must be chosen carefully.
Programs
IC120CLP
|
ME120CLP
|
IC120CLP1
|
OP100CLP
|
IC120CLP3
|
OP110CLP
|
IC130CLP
|
OP120CLP
|
IC130CLP1
|
OP130CLP
|
IC180CLP1
|
SF120CLP1
|
IC190CLP1
|
SF120CLP2
|