Replication Server sends an rs_get_lastcommit function call to the gateway to retrieve the last transaction committed in the database from each source primary database. The gateway is expected to return the first three columns described in Table 6-2.
The function string for rs_get_lastcommit can execute a simple select:
select origin, origin_qid, secondary_qid from rs_lastcommit
The rs_get_lastcommit function is pre-defined in connection profiles for actively supported non-ASE data servers.