cics

How to rollback changes to VSAM file on CICS?


I'm using EXEC CICS SYNCPOINT and EXEC CICS SYNCPOINT ROLLBACK to commit/backout updates to VSAM and DB2 tables when abend happens. However, only updates to DB2 tables are backed out not on VSAM. Am I missing something? CICS parameter RLS is set to RLS=NO.


Solution

  • It will depend on the type of files that you are using. If you are using RLS files then you have to define the files correctly using idcams using the LOG parameter see:

    https://www.ibm.com/docs/en/zos/2.2.0?topic=cics-recoverable-nonrecoverable-data-sets

    If you are using non-RLS files then you need to set the attributes correctly on your FILE definition.

    See the following page within the CICS documentation that describes about file recovery:

    https://www.ibm.com/docs/en/cics-ts/5.6?topic=resources-recovery-files