Step 2: Use the change accumulation data sets in a forward recovery

The second step occurs automatically when you use the CICS® VR ISPF dialog interface to forward recover a sphere.

When you use the ISPF dialog to forward recover a sphere, CICS VR automatically generates the APPLYCA keyword on the RECOVER command in the forward recovery job. APPLYCA tells CICS VR to apply the records in the CA data set to the restored VSAM sphere, then apply the remaining log range from the forward recovery log, to pick up the most recent changes. If no CA data set exists, CICS VR ignores the APPLYCA keyword.

Using the CA data set can significantly improve the performance of your forward recovery runs. If there is a specific reason you do not want to use the CA data set for a forward recovery run, you can manually delete the APPLYCA lines from the forward recovery job. If the APPLYCA keywords are deleted, CICS VR does not use the CA data set and it only applies the records from the forward recovery log.

Note: To allow for CICS VR to perform a selective forward recovery by specifying the EXCLUDE and INCLUDE commands on a recovery job, be sure to save the log records for the time period you want to cover. CICS VR cannot use change accumulation data sets when performing selective forward recovery. CICS VR must use log records from an MVS log stream or log stream copy to perform selective forward recovery. See INCLUDE: Only use specific log records and EXCLUDE: Exclude specific log records for more information.
Figure 1. Sample ISPF dialog generated forward recovery job with APPLYCA
 //JOB7     JOB MSGCLASS=X,CLASS=A,MSGLEVEL=(1,1),REGION=0M
 //DWW      PROC                               
 //*CICSVR PROGRAM                             
 //RECOVER  EXEC PGM=DWWCO                     
 //*                           
 //*LIBRARY WITH CICSVR PROGRAM                
 //STEPLIB DD DISP=SHR,DSN=DWW.SDWWLOAD
 // DD DISP=SHR,DSN=DWW.SDWWLENU
 //*                                           
 //*MESSAGE LIBRARY                            
 //DWWMSG   DD SYSOUT=*                      
 //*                           
 //*PRINT LIBRARY              
 //DWWPRINT DD SYSOUT=*        
 //*                           
 //*RCDS                                             
 //DWWCON1  DD DSN=DWW.DWWCON1,DISP=SHR     
 //DWWCON2  DD DSN=DWW.DWWCON2,DISP=SHR     
 //DWWCON3  DD DSN=DWW.DWWCON3,DISP=SHR     
 //            PEND                                  
 //* END OF PROC                     
 //DWW001 EXEC DWW                   
 //DWWIN    DD   * 
   RECOVER -
     ONLY -
     APPLYCA -
     STARTTIME(08.245/17:07:42) -
     STOPTIME(08.245/17:10:38) -
     STARTAT(DSNAME) -
     VERSION(001) -
     SPHERE(DATASETNAME1)
   RECOVER -
     ONLY -
     APPLYCA -
     STARTTIME(08.245/17:07:42) -
     STOPTIME(08.245/17:10:38) -
     STARTAT(DSNAME) -
     VERSION(001) -
     SPHERE(DATASETNAME2)
   MVSLOG -
     NAME(LOGSTREAMNAME1)