Previous Topic: DASD ATTACH Commands Access RulesNext Topic: DASD Dump Restore and FORMAT Access Rules


Writing Tape Volume Access Rules

CA ACF2 for VM validates volumes that are defined in the TAPEVOLS field list through tape volume access rules. The rule set syntax for tape volume access is similar to that of any other access rule set:


  [ volser|VOLUME   ]
  [ UID(uid)        ]
  [ SOURCE(source)  ]
  [ SHIFT(shift)    ]
  [ UNTIL(date)     ]
  [ FOR(days)       ]
  [ READ(A|L|P)     ]
  [ WRITE(A|L|P)    ]
  [ DATA(data)      ]
  [ NEXTKEY(ruleid) ]

The access types, for example, are syntactically identical and have the same meanings:

The volser value is specified as:

Use the NOVOLRULE|VOLRULE operand of the RULEOPTS VMO record to determine how to specify the volser in tape volume access rules. If you specify VOLRULE, you must specify the volser of a tape volume in the @volser.VOLUME format. If you specify NOVOLRULE (the default), you must specify the volser of a tape volume in the VOLUME.@volser format.

Issue the SHOW STATE subcommand to display the current VOLRULE setting. For more information on the VOLRULE field of the RULEOPTS VMO record, see the “Defining Structured Infostorage Records” chapter.

To access a tape volume, you must enter the ACFMOUNT command specifying the volser of the tape. If you enter the command syntax correctly and the volser is defined in the TAPEVOLS VMO record, a tape volume access rule is validated to see if the user is allowed to read from or write to the volume. If access is allowed, CA ACF2 for VM prompts the system operator to mount the indicated volume. (You can enforce additional validation through command limiting of ACFMOUNT.)

Another aspect of CA ACF2 for VM protection for tape volumes concerns tape volume reuse protection, implemented through the ACFERASE utility that erases all of a tape's data. The system operator responsible for the protection of tape volumes is typically given authority to use this utility, although an exec or program normally calls ACFERASE.