Previous Topic: Recovery ExamplesNext Topic: Example JCL 2


Example JCL 1

The following shows the command to reverse the transactions for the PAYCHECK job on database 1.

Note: Use the following as a guide to prepare your JCL. The JCL statements are for example only. Lowercase letters in a statement indicate a value you must supply. Code all statements to your site and installation standards.

 //jobname    See the previous note and JCL Requirements.
 //       EXEC PGM=DBUTLTY,REGION=2M
 //STEPLIB    See the previous note and JCL Requirements.

 //RXX      DD DSN=rxx.data.set,DISP=SHR           Recovery data set
 //SYSIN    DD *                                    Command Input
          RECBASE   DBID=1
          RECJOB    JOBNAME=PAYCHECK
          RECOVERY  OPTION=BACKWARD,SORT=1000,MISMATCH=FAIL
 /*

The above example assumes that the job, ARMAINT, was running for longer than the two-hour period of time specified in the input parameters. The date and time keywords are not required to recover an entire job.