Multimember files¶
A Db2 for i physical file can have several members. Stelo Capture can replicate members other than the first incrementally.
Requirements¶
- The agent's
multiMemberproperty is on (the default; Db2 for i agents only). If it'sfalseon the agent's Configuration tab, set it totrueor remove it (saving restarts a running agent). - The file is journaled, by autojournaling or another method (see Journaling).
Replicate a member other than the first¶
- Choose the member in the Data Replicator Manager. Turn on AS/400 Multi Member File Access in the source's advanced properties (see Source properties); the Subscription Wizard then lets you select the member. Nothing needs to be set up on the IBM i for this.
-
Create an SQL alias for each member and subscribe to the aliases:
CREATE ALIAS MYLIB.MYFILE_MYMBR FOR MYLIB.MYFILE(MYMBR)
Kafka destinations can replicate individual members without the alias method.