Previous Topic: The Keyword DELETENext Topic: Assign SYSOUT IDs Based on Embedded Text


ERO Table Examples

Example 1

This example shows you how to keep:

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:

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.

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