Skip to content

Remove the Db2 for i exit program

A Db2 for i Capture Agent registers the exit program CADLTRCV, which stops IBM i from deleting journal receivers the agent still needs (see Keep the source's journals and logs in check). To manage journal receivers yourself, remove it.

Warning

Without the exit program, nothing stops a receiver the Capture Agent still needs from being deleted. If that happens, every subscription that reads the journal needs a new baseline.

Steps

  1. Stop the agent from registering the exit program again. On the agent's Configuration tab, set managedLogs=false and autoJournal=false, and click Save. The agent restarts and no longer registers the exit program. (With autoJournal=false, Stelo Capture also stops journaling tables for you; see Autojournaling.)
  2. Remove the registration Stelo Capture knows about. As a user with *ALLOBJ and *SECADM special authorities, run (replace both SQDR values with the agent's schema if it's different):

    CALL PGM(SQDR/CALOGMGMT) PARM('U' 'SQDR')
    
  3. Remove any registrations left from earlier installations.

    1. Run WRKREGINF.
    2. Page down to the exit point QIBM_QJO_DLT_JRNRCV, format DRCV0100.
    3. Type 8 in Opt next to it and press Enter.
    4. On Work with Exit Programs, type 4 (Remove) next to each entry for program CADLTRCV in library SQDR (or the agent's schema) and press Enter to confirm.