z/OS DFSMS OAM Planning, Installation, and Storage Administration Guide for Tape Libraries
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Change use attribute installation exit (CBRUXCUA)

z/OS DFSMS OAM Planning, Installation, and Storage Administration Guide for Tape Libraries
SC23-6867-00

When you issue the CBRXLCS macro FUNC=CUA, the ISMF ALTER line operator from the mountable tape volume list, or the LIBRARY LMPOLICY command, the Change Use Attribute installation exit (CBRUXCUA) is called before the volume record is changed.

This installation exit is designed to allow the installation the opportunity to approve or disapprove the proposed change to the volume’s use attribute, and to view, and if necessary, to change many fields in the TCDB volume record as well as outboard policy fields, if applicable. Approval or disapproval is communicated by way of the return code which is passed back in register 15. Volume record fields are updated by changing the appropriate fields in the change use attribute installation exit parameter list (CBRUXCPL).

The change use attribute installation exit is supplied by DFSMSrmm. If your installation is not using DFSMSrmm, the supplied exit returns a return code of 16, indicating that the installation exit not be invoked again. For more information, see z/OS DFSMSrmm Managing and Using Removable Media, z/OS DFSMSrmm Implementation and Customization Guide, and z/OS DFSMSrmm Diagnosis Guide.

If your installation is not using DFSMSrmm and your tape management vendor has not supplied an exit, OAM provides a sample change use attribute exit (CBRSPUXC) in SAMPLIB that can be customized to fit your needs. The discussion that follows will assist in determining whether the exit is needed on your system. For more information on this SAMPLIB member, see SAMPLIB member CBRSPUXC.

If the caller of the CBRXLCS macro specified EXITINFO on the macro invocation, the 16 bytes of free-form information provided on the invocation are passed to the exit. If the CBRXLCS invocation is called during job processing for a scratch volume, SMS TVRU S->P is passed to the exit. If EXITINFO is not specified on the CBRXLCS invocation, the field in the exit parameter list contains binary zeros.

The following library-related information is passed to the exit but may not be updated by the installation:
  • Library name
  • Library device type
  • Library logical type
  • Library description
  • Library console name (if specified) or blanks
  • Library supported function indicator

If the volume is not library-resident, the exit parameter list indicates a library name of SHELF and all the other library fields in the exit parameter list are blank.

Both the current use attribute as it is recorded in the tape volume record and the new use attribute are passed to the exit as input variables.

On a change to SCRATCH, the fields that are passed to the exit represent the values in the tape volume record as it currently exists in the TCDB before any changes are made. If a volume is being changed from PRIVATE to SCRATCH, and if the installation exit supplies new values for any of the following fields, they are ignored. The following default scratch values are set before committing the changes to the TCDB:

  • Volume use attribute = S
  • Storage group name = *SCRTCH*
  • Write protection status = N
  • Checkpoint volume indicator = N
  • Volume expiration date = blank
  • Tape device selection values:
    • Recording technology is unchanged
    • Media type is unchanged
    • Compaction indicator is unchanged
    • Special attribute is set to none
  • If the library supports outboard policy management, default construct names (blanks) are passed to the library.

On a change to PRIVATE, the fields that are passed to the exit represent the values in the volume record as updated with the parameters specified on the CBRXLCS macro invocation. The installation may override some of those parameters as described in the table below. If the installation makes no changes, the values are committed to the TCDB as presented in CBRUXCPL. If the exit changes some fields, they are processed as described below.

If a field is described as ‘input only’ in the table below, it may not be updated by the installation. If it is described as ‘output’, it may be updated by the installation. If it is further described as ‘verified’, the contents or format of the field is validated before updating the TCDB volume record with information from the installation.

For a change to PRIVATE or SCRATCH for a physical WORM tape volume, the UXCVWORM indicator is set on. For a logical WORM tape volume, this indicator is not turned on. Since a logical WORM volume is not distinguishable by a unique media type, the UXCVWORM indicator is not turned on for a logical WORM volume. If this information is needed, the CBRUXCUA installation exit can invoke the CBRXLCS FUNC=QVR interface to obtain this information from the library.

If the installation exit returns with an invalid value in a parameter field, returns with an invalid return code, or abnormally terminates, the current request fails. In addition, change use attribute processing for subsequent PRIVATE to SCRATCH requests is disabled and the change use attribute exit is not called again until either OAM is stopped and started, or the LIBRARY RESET,CBRUXCUA operator command is issued.

Note: When an error occurs in the installation exit, PRIVATE to SCRATCH requests are disabled in order to prevent the inadvertent assignment of a private volume to scratch status. Processing continues for SCRATCH-to-PRIVATE, SCRATCH-to-SCRATCH, and PRIVATE-to-PRIVATE requests without invocation of the change use attribute installation exit.

Table 1 lists the parameters that are passed to the exit. The fields may or may not be updated by the installation, depending on the function being performed (for example, changed to SCRATCH or PRIVATE).

Table 1. Parameters passed to the installation exit—CBRUXCUA
Parameter SCR->PRIV PRIV->SCR
Volume serial number Input only Input only
Current use attribute Input only Input only
New use attribute Input only Input only
Storage group name Output/Verified Output (ignored)
Write protection status Output/Verified Output (ignored)
Checkpoint volume indicator Output/Verified Output (ignored)
Volume location code Input only Input only
Shelf location Output Output
Volume owner information Output Output
Volume record creation date Input only Input only
Last entry or eject date Input only Input only
Last mounted date Output/Verified Output/Verified
Last written date Output/Verified Output/Verified
Volume expiration date Output/Verified Output (ignored)
Tape device selection information Input only Input only
Installation exit information Input only Input only
Storage class name Output/Verified Output (ignored)
Data class name Output/Verified Output (ignored)
Management class name Output/Verified Output (ignored)
Supported functions indicators Input only Input only
Volume information indicators Input only Input only
If a field is described as verified, the following values are checked for validity upon return from the exit:
Storage Group Name
When a volume is changed from scratch to private or private to private, the storage group name that is supplied may be blanks. If a nonblank value is supplied, the name must be defined in the active SMS configuration as a tape storage group. In addition, if the volume is library-resident, the library must be defined to that storage group.
Storage Class Name
When a volume is changed from scratch to private or private to private, the storage class name that is supplied may be blank. If a nonblank value is supplied, the name must only conform to Storage Management Subsystem (SMS) naming conventions standards. See Syntax rules for the syntax checking that is performed.
Data Class Name
When a volume is changed from scratch to private or private to private, the data class name that is supplied may be blank. If a nonblank value is supplied, the name must only conform to Storage Management Subsystem (SMS) naming conventions standards. See Syntax rules for the syntax checking that is performed.
Management Class Name
When a volume is changed from scratch to private or private to private, the management class name that is supplied may be blank. If a nonblank value is supplied, the name must only conform to Storage Management Subsystem (SMS) naming conventions standards. See Syntax rules for the syntax checking that is performed.
Syntax rules: The values that you specify for the storage group, storage class, data class, and management class construct (policy) names must meet the following SMS naming convention standards:
  • Alphanumeric and national characters only
  • Name must begin with an alphabetic or national character ($*@#%)
  • No leading or embedded blanks
  • Eight characters or less
Write protection status
Y, N, or blank can be specified.
Checkpoint volume indicator
Y, N, or blank can be specified.
Last mounted date
The date specified must be in ISO format (YYYY-MM-DD) or blanks.
Last written date
The date specified must be in ISO format (YYYY-MM-DD) or blanks.
Volume expiration date
The date specified must be in ISO format (YYYY-MM-DD) or blanks.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014