Writing a commit marker to the transaction log file

commit_mark

Write a commit marker to the transaction log file


SYNTAX

commit_mark

The commit_mark command is used to mark the end of a section of code, any file updates in which are to be treated as a single entity, or transaction, for the purposes of transaction logging. The beginning of the section of code was marked by the begin_mark command. All Sculptor file updates that take place within the marked code are recorded as part of the transaction. The commit_mark command writes a ‘commit transaction’ marker to the transaction log file, indicating that the transaction is complete.

This command, previously called commit, was replaced in Sculptor V. 5.1.0 by the commit() function, and renamed commit _mark for upward compatibility. Similarly, the begin and rollback commands have been replaced by functions and renamed begin_mark and rollback_mark. All three commands should be regarded as obsolescent. The functions are almost identical to the commands but do have some improvements in functionality.

Programs compiled with scc V. 5.0 or earlier map begin, commit and rollback to begin_mark, commit_mark and rollback_mark and work as before.

In order to recompile programs with scc V. 5.1, either append _mark to the commands, in which case they will work as they did before, or append () to convert the commands and use the new functionality.

See begin() for further details of transaction logging and the recovery program.


RELATED TOPICS

sys.Logging

begin()

commit()

rollback()