Capture Agents may be Stopped simply to apply changes to the configuration file as described earlier or Unmounted, which will completely terminate the capture.
Example
Stop the agent and then, using the SQDCONF Unmount command, terminate the Capture Agent which performs a complete shutdown of the address space. JCL is included in the distribution similar to the following and can be edited to conform to the operating environment and then used to execute the SQDCONF Configuration Manager.
//*----------------------------------------
//*- STOP CAPTURE AGENT
//*----------------------------------------
//STOP EXEC PGM=SQDCONF
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SQDPARMS DD *
stop /home/sqdata/db2cdc/db2cdc.cab
//*----------------------------------------
//*- UNMOUNT CAPTURE AGENT
//*----------------------------------------
//UNMOUNT EXEC PGM=SQDCONF
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SQDPARMS DD *
unmount /home/sqdata/db2cdc/db2cdc.cab