Determining which tape volumes are available for output

The QUERY command is also used to determine tape volumes that are to be requested for backup and migration if volumes are available for selection.