Statement Examples

Example 1
view
Example 1
This example shows you how to keep:
  • Two generations of all
    View
    reports on disk, and three on tape.
    Note that if a value for the NGENI parameter is not specified NGENT also governs master index backups.
  • Reports beginning with the characters ABC on tape for 90 days; however, you are limited to 30 days on disk.
Set the following initialization parameters:
NGEND=2 NGENT=3
Specify the following ERO table:
/ABC* ALL RETPD=90 DRETPD=30 * *    ALL APPLICATION 'ABC' REPORTS ARE *    ON DISK 30 DAYS, ON TAPE 90 DAYS
Example 2
This example shows you how to keep:
  • All reports beginning with ABCD on disk for 7 days and on tape for one year.
  • Reports beginning with ABC on disk for 7 days and on tape for 90 days.
Set the following initialization parameters:
/ABCD*  ALL RETPD=366 DRETPD=7 /ABC*   ALL RETPD=90 DRETPD=7 * *     ABCD REPORTS ARE REQUIRED ON TAPE *     FOR ONE YEAR FOR LEGAL PURPOSES *
Note:
ERO uses the first match it finds. If these entries were in reverse order, an error message (SARPAR08) is generated at the start of the backup.
Example 3
This example shows you how to keep the most recent successful run of report ABCDE which is created multiple times during a production cycle. You want the last report in each generation that ran without an exceptional condition to be kept. At most, 10 copies will be kept on tape, 5 of which are also on disk.
Specify the following ERO table:
/ABCDE   LAST COPIES=10 DCOPIES=5 XCOND=NO
Example 4
This example shows you how to keep disk use to an absolute minimum.
  • All JCL reports beginning with the characters AUDIT, including runs that had exceptional conditions, are kept on tape for 7 years.
  • No copies are kept on disk past the current generation.
Set the following initialization parameters:
PRETAIN=TABLE NGEND=1
Specify the following ERO table:
/AUDIT*  ALL RETPD=2557 DRETPD=0 XCOND=YES
Example 5
This example also shows you how to keep disk use to an absolute minimum. Reports beginning with the characters TEST are excluded from ERO processing. A user-defined retention of 3 days is established for all reports that are marked (K online command, SARBCH /PERM statement), even if they run with an exceptional condition.
Set the following initialization parameters:
NGEND=1
Specify the following ERO table:
/TEST*  EXCLUDE /*      MARK RETPD=3 XCOND=YES