SET_REPLICATION function for RRSAF
The RRSAF SET_REPLICATION function enables an APF authorized program to identify to Db2 as a replication program.
Calling the SET_REPLICATION function is optional. If you do not call it, Db2 treats the application normally. The SET_REPLICATION function allows the application to perform insert, update, and delete operations then the tablespace or database is started access RREPL.
The following diagram shows the syntax for the SET REPLICATION function.
Parameters point to the following areas:
- function
- An 18-byte area that contains SET_REPLICATION.
- retcode
- A 4-byte area in which RRSAF places the return code.
This parameter is optional. If you do not specify retcode, RRSAF places the return code in register 15 and the reason code in register 0.
- reascode
- A 4-byte area in which RRSAF places a reason code.
This parameter is optional. If you do not specify reascode, RRSAF places the reason code in register 0.
If you specify reascode, you must also specify retcode.
