Sample Forward Recovery System control cards
Not all data recovery parameters must be specified--only those which meet the needs of the recovery being done. If you want to recover everything on the journal for a file, then no beginning or ending times or dates and no special terminals need to be specified.
The following example recovers all records for file EMPFILE from the CICS journals in the JCL and applies them to the backup file in the JCL that you have restored. It prints only those records for which data recovery errored and was not done.
RECOVER FCT(EMPFILE) TYPE(KSDS) RECFM(V) PRINT(ERROR) .
The following example recovers records for file EMPFILE from the CICS journals with transaction prefixes PA and EM but excludes transactions PAY1 and EMP2. It prints all records recovered.
RECOVER FCT(EMPFILE) TYPE(KSDS) RECFM(V) PRINT(ALL)
INCL-TRAN(PA**,EM**)
EXCL-TRAN(PAY1,EMP2) .
Below all transactions from the CICS journals except those done with PAY1, PAY2, and EMP4 are applied to EMPFILE. It recovers only transactions done on February 20, 2014 (14/051) between 1:00 PM (13:00:00) and 1:45 PM (13:45:00). All records are printed.
RECOVER FCT(EMPFILE) TYPE(KSDS) RECFM(V) PRINT(ALL)
START-TIME(13:00:00) END-TIME(13:45:00)
START-DATE(14/051) END-DATE(14/051)
EXCL-TRAN(PAY1,PAY2,EMP4) .
Below a file that was backed up while open for update in CICS using CICS's Backup While Open facility (BWO) is recovered. If BWO is coded for either START-DATE or START-TIME, then FRS uses the data set's BWO timestamp in its z/OS catalog entry as the starting point for forward recovery.
RECOVER FCT(YOURBWO) TYPE(ESDS) RECFM(F) PRINT(ERROR)
START-DATE(BWO) START-TIME(BWO)
EXCL-TERM(T9**,*123,A***,*AB*) .
Multiple files can be recovered in a CICS/Forward Recovery System job. Standard z/OS or VSE batch JCL with a DD (or DLBL) for each file to be recovered is used with as many RECOVER control cards as you wish.