Use this command to make a random access volume online or offline to the server as a database, recovery log, or storage pool volume. This command is valid only for volumes on random access devices. For example, use this command during maintenance or corrective action of a random access volume. You cannot vary a random access volume online that is defined as unavailable.
Privilege Class
To issue this command, you must have system privilege or operator privilege.
Syntax
.-Wait--=--No------. >>-VARy----+-ONline--+--volume_name----+------------------+---->< '-OFfline-' '-Wait--=--+-No--+-' '-Yes-'
Parameters
For MVS VSAM linear data sets, specify a standard MVS VSAM cluster name. A VSAM cluster name consists of one or more qualifiers, which are delimited by periods. The length of each qualifier is from 1-8 alphanumeric characters. The maximum length of the cluster name is 42 characters, for example, ADSM.BFS.POOl2.VOLA.
Note: | You cannot specify Wait=Yes when you issue this command with the MVS MODIFY command. |
Examples
Task
Make volume WEST.SALES.NEW available to the server for use as a database volume.
Related Commands
Table 280. Commands Related to VARY
Command | Description |
---|---|
CANCEL PROCESS | Cancels a background server process. |
DEFINE DBVOLUME | Assigns a volume to be used for database storage. |
DEFINE LOGVOLUME | Defines a disk volume to the recovery log. |
DEFINE VOLUME | Assigns a volume to be used for storage within a specified storage pool. |
DELETE DBVOLUME | Deletes a volume from the database. |
DELETE LOGVOLUME | Deletes a volume from the recovery log. |
DELETE VOLUME | Deletes a volume from a storage pool. |
QUERY DBVOLUME | Displays information database volumes. |
QUERY LOGVOLUME | Displays information about log volumes. |
QUERY PROCESS | Displays information about background processes. |
QUERY VOLUME | Displays information about storage pool volumes. |