Scheduling CDC Replication Engine for Db2® for i start up and shut down (Optional)

You can schedule CDC Replication to start up or shut down automatically at scheduled times on System i. You can add an entry to the System i job scheduler using the ADDJOBSCDE (Add Job Schedule Entry) command.

Procedure

  1. Create a Control Language (CL) program to set the current library to the CDC Replication product library name and issue CDC Replication commands.

    The sample CL program named DM_START sets the current library to DMIRROR and starts continuous mirroring (STRDTAMIR) for the subscription AS400TGT.

    CL Program: DM_START
    *************** Beginning of data *************************************
    0001.00 PGM
    0002.00 CHGCURLIB CURLIB(DMIRROR)
    0003.00 STRDTAMIR TARGET(AS400TGT) IDLE(*WAIT) FORMAT(*NO)
    0004.00 ENDPGM
    ****************** End of data ****************************************
  2. Add an entry to the System i job scheduler.

    In the following example, continuous mirroring is scheduled to start daily at 8 AM.

    ADDJOBSCDE JOB(DM_START) CMD(Call <name>/DM_START) FRQ(*WEEKLY) SCDDATE(*NONE)
    SCDDAY(*ALL) SCDTIME(080000) JOBD(<library>/DMCJOBD)

    where:

    <name>
    The library where the CL program DM_START is located
    <library>
    The library where you installed or upgraded CDC Replication