Advanced Replication Guide : Using advanced replication with applications : Building messages for synchronization : Ending messages
  
Ending messages
It is good practice to explicitly end each synchronization message with the MESSAGE END statement. This statement, together with the transaction commit operation, makes the message persistent in the replica by saving it to the synchronization system tables of the replica database. The syntax for ending the message is:
MESSAGE unique_messsage_name END
Note that after ending the message, you must be sure to commit the message by providing the COMMIT WORK statement.
See also
Building messages for synchronization