Once it has been determined changes to on-line and/or batch VSAM files are to be captured, the VSAM LOGREPLICATE function is simple to configure. Connect CDC (SQData) requires the following modifications in a typical environment.
-
Use
IDCAMS
to add the LOGSTREAMID with the LogStream name previously created and LOGREPLICATE parameters to the VSAM files Cluster specification in the ICF catalog entry for each VSAM file to be captured.
Example:

//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER SQDATA.CICS.FILEA -
LOGSTREAMID(SQDATA.VSAMCDC.LOG1) -
LOGREPLICATE
Note: If CICS opens VSAM files in RLS mode then the LOG parameter must be also be specified and included in the ALTER in addition to the parameters above.
-
CICS Replication Logging Recovery Parameters must also be set for each VSAM file to be captured by the LOGREPLICATE function, with
BACKOUTONLY
as the minimum settings.
Example
CEDA DEFINE FILE(name) GROUP(groupname)
DSNAME(data set name)
RECOVERY(NONE|BACKOUTONLY|ALL)
FWDRECOVLOG(NO|1–99)
BACKUPTYPE(STATIC|DYNAMIC)
RECOVERY PARAMETERS
RECOVERY : None | Backoutonly | All
FWDRECOVLOG : No | 1-99
BACKUPTYPE : Static | Dynamic