z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


VOLUME—Query Volume Information

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The VOLUME assignment statement retrieves the volume serial number (or serial numbers) and the number of volumes on which the data set resides.

Syntax

Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

>>-ISREDIT--(var1,var2,var3)-- = --VOLUME----------------------><

var1
The name of a variable to contain the serial number of the volume on which the data set resides. For a multivolume data set, this will be the serial number of the first volume. The volume serial number is a six character value.
var2
The name of a variable to contain the number of volumes the data set occupies. The number of volumes is a two-character value.
var3
The name of a variable to contain the serial number of the volume of the original data set.

Return codes

0
Normal completion
4
The data set is a multivolume data set and the shared pool variable ZEDMVOL is set to contain all the volume serial numbers of the data set. ZEDMVOL has the length of the number of volumes times six.
20
Severe error

Examples

To retrieve just the volume serial number of the data set:
ISREDIT (VOL) = VOLUME
To retrieve just the number of volumes the data set occupies:
ISREDIT (,NUMVOL) = VOLUME
To retrieve both the volume serial number and the number of volumes the data set occupies:
ISREDIT (VOL,NUMVOL) = VOLUME

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014