_sgvols() function
The following table describes the parameters for this function:
Parameter | Description |
|---|---|
storageGroup | The name of the SMS storage group (STOGROUP) for which you want a list of volumes |
listVariable | (optional) A stem variable that will contain a numbered list of strings, each containing values for a single volume in the STOGROUP If you do not supply a value, the function returns the list in the vols variable. |
Values returned
The _sgvols() function returns two types of output.
The first type of output returned is the success of the function. The following table describes the values for this output:
Value | Description |
|---|---|
OK | Successful operation with normal completion |
Error message | Text that describes the nature of the error |
The second type of output returned is a set of values for each volume in the STOGROUP. Each instance of the list variable (for example, vols.1, vols.2, vols.3, and so on), contains a string of numbers that indicate the following values:
- The volume serial number
- The amount of free space on this volume, in cylinders
- The largest number of free extents on this volume, in cylinders
The storage group volumes are listed in descending order (from largest to smallest) by the largest free extent value. In other words, the variable vols.1 will have the information for the volume with the largest free extent, vols.2 will have the information for the volume with the second largest free extent, and so on. The variable vols.0 indicates the number of volumes returned.