Sample commands for CECBTCCP
These examples demonstrate use of the CECBTCCP batch command processor utility to perform replication-related tasks.
Example 1: Stop replication
The following example stops replication for the subscription VSAM_REP_DEMO:
//CECBTCCP EXEC PGM=CECBTCCP,REGION=8M,
// PARM='LOCAL=TRUE'
//STEPLIB DD DISP=SHR,DSN=&hlq..SCACLOAD
//SYSPRINT DD SYSOUT=*
//CECADODL DD SYSOUT=*
//MSGCAT DD DISP=SHR,DSN=&hlq..SCACMSGS
//CECADMIN DD DISP=SHR,DSN=&hlq..<source server name>.ADMINQ
//SYSIN DD *
STOP REPLICATION VSAM_REP_DEMO;
Example 2: Activate a mapping and start replication
This example activates all replication mappings for the subscription VSAM_REP_DEMO and starts replication for the subscription:
//CECBTCCP EXEC PGM=CECBTCCP,REGION=8M,
// PARM='LOCAL=TRUE'
//STEPLIB DD DISP=SHR,DSN=&hlq..SCACLOAD
//SYSPRINT DD SYSOUT=*
//CECADODL DD SYSOUT=*
//MSGCAT DD DISP=SHR,DSN=&hlq..SCACMSGS
//CECADMIN DD DISP=SHR,DSN=&hlq..<source server name>.ADMINQ
//SYSIN DD *
ACTIVATE VSAM_REP_DEMO REPLICATION MAPPING ALL TIME STAGETIME;
START REPLICATION VSAM_REP_DEMO;
Example 3: Query all requests
This example queries all requests in the CECADMIN DD:
//CECBTCCP EXEC PGM=CECBTCCP,REGION=8M,
// PARM='LOCAL=TRUE'
//STEPLIB DD DISP=SHR,DSN=&hlq..SCACLOAD
//SYSPRINT DD SYSOUT=*
//CECADODL DD SYSOUT=*
//MSGCAT DD DISP=SHR,DSN=&hlq..SCACMSGS
//CECADMIN DD DISP=SHR,DSN=&hlq..<source server name>.ADMINQ
//SYSIN DD *
QUERY SERVERTIME 1970-01-01-00.00.00;
Example 4: Delete all requests before a specified time
This example deletes all requests in the CECADMIN DD prior to the specified end time. You can use this command to periodically clean up the administration queue DD:
//CECBTCCP EXEC PGM=CECBTCCP,REGION=8M,
// PARM='LOCAL=TRUE'
//STEPLIB DD DISP=SHR,DSN=&hlq..SCACLOAD
//SYSPRINT DD SYSOUT=*
//CECADODL DD SYSOUT=*
//MSGCAT DD DISP=SHR,DSN=&hlq..SCACMSGS
//CECADMIN DD DISP=SHR,DSN=&hlq..<source server name>.ADMINQ
//SYSIN DD *
DELETE SERVERTIME 1970-01-01-00.00.00 2017-05-01-00.00.00;
Example 5: Query a specific request and wait for completion
This example queries a single specific request in the CECADMIN DD and waits 10 seconds (up to 100 retries, each with a 100-millisecond wait for a maximum of 10 seconds) for completion:
//CECBTCCP EXEC PGM=CECBTCCP,REGION=8M,
// PARM='LOCAL=TRUE'
//STEPLIB DD DISP=SHR,DSN=&hlq..SCACLOAD
//SYSPRINT DD SYSOUT=*
//CECADODL DD SYSOUT=*
//MSGCAT DD DISP=SHR,DSN=&hlq..SCACMSGS
//CECADMIN DD DISP=SHR,DSN=&hlq..<source server name>.ADMINQ
//SYSIN DD *
QUERY TOKEN 00D2AEDB6D76564822000000014D0002
WAIT 100 RETRIES 100 ;