When your program is operating under commitment control and has processed an input or output operation on a record in a file under commitment control, the record is locked by commitment control as follows: On the STRCMTCTL command, you specify a level of locking, either LCKLVL(*ALL), LCKLVL(*CHG), or LCKLVL(*CS). The CL command ENDCMTCTL notifies the system that your activation group or job has finished processing files under commitment control. If you call a program that opens a file specified for commitment control before you issue the STRCMTCTL command, the opening of the file will fail. You specify this file, message queue, or data area on the STRCMTCTL command.īefore you call any program that processes files specified for commitment control, issue the STRCMTCTL command. In the event of an abnormal job end, this identification label is written to a file, message queue, or data area so that you know which group of changes is the last group to be completed successfully. When you complete a group of changes with a COMMIT operation, you can specify a label to identify the end of the group. For further information, see “Specifying Conditional Commitment Control”. You can make commitment control conditional, in the sense that the decision whether to process a file under commitment control is made at run time. See “Commitment Control Locks” and the CL Programming manual for further details on lock levels. The LCKLVL(Lock Level) parameter allows you to select the level at which records are locked under commitment control. The CL command STRCMTCTL notifies the system that you want to start commitment control. Note: Commitment control applies only to database files. For information on how the rollback function is performed by the system, refer to the Backup and Recovery manual. Use the COMMIT (commit) operation code to apply a group of changes to files under commitment control, or use the ROLBK (Roll Back) operation code to eliminate the pending group of changes to files under commitment control.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |