Previous Topic: Vault Pattern Example 1 - Vaulting By Data Set NameNext Topic: Vault Pattern Example 3 - Vaulting by Data Set Name with Index (-) and SEPDSN


Vault Pattern Example 2 - Vaulting by Data Set Name with Index (-)

The pattern is defined as follows:

VAULTS=SAFE
DSN=PAYROLL.DAILY-
V=SAFE,C=1

The data sets processed are:

VOLSER

Data Set Name

CDATE

OUTCODE

000001

PAYROLL.DAILY1

95050

----

000002

PAYROLL.DAILY2

95051

----

000003

PAYROLL.DAILY3

95052

SAFE

The Index (-) option allows VMS to control all data sets using the same initial character string. In this example, only the most recent creation of any DSN beginning with PAYROLL.DAILY is moved to SAFE. VOLSER 000003 is the most recent creation (95052).