Configure VSAM and CICS |
Scroll |
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:
1.Using IDCAMS, 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:
LOG(NONE|UNDO|ALL) |
Where the value of the LOG parameter may not be () Null but rather one of the following:
NONE - not recoverable |
UNDO - recoverable by backout |
ALL - recoverable by backout and forward recovery |
2.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 setting
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 |
Note: For more information see IBM's documentation on the following:
•CICS Replication logging
•Setting up access to VSAM datas sets for replication.
•The CEDA DEFINE command
•VSAM files accessed in non-RLS mode