This function returns information about specified DASD devices.
Form 1:
space = DASD(SPACE,{VOLUME,volser}) {UNIT,unitname}
Form 2:
unitname = DASD(VOL2UNIT,volser)
Form 3:
volser = DASD(UNIT2VOL,unitname)
Form 4:
ucb = DASD(UCB,{VOLUME,volser}) {UNIT,unitname}
Parameters
Amount of free space on the DASD. The result string has the following format:
SPACE fcyl ftrk ext lcyl ltrk
Total free cylinders
Total free tracks on partial cylinders
Total free extents
Number of cylinders in the largest contiguous group
Number of free tracks contiguous with largest free area
Returns information about the amount of free space remaining on the volume or device.
Indicates that the third argument specifies a volume serial number.
Volume serial number (volume label) of a DASD device.
Indicates that the third argument specifies a unit address.
Numeric unit name the operating system assigns. This is the decimal equivalent of the value.
Returns the physical device address (unit address) of the device bearing the specified volume serial number (volume label).
Returns the volume serial number (volume label) associated with the specified physical device address.
Memory address of the unit control block (UCB) assigned to the DASD device. The address is returned as a decimal number.
Returns the memory address of the unit control block assigned to the volume or device.
ARG n MISSING OR INVALID
SPECIFIED VOLUME NOT FOUND
UNIT ADDRESS NOT VALID
Example
unit = dasd('VOL2UNIT','mvs101') /* Determine unit name containing MVS101 */ volser = dasd('UNIT2VOL',x2d(152)) /* Determine volser currently on unit 152 */ ucb = dasd('UCB','UNIT',x2d(152)) /* Obtain memory address of UCB for unit 152 */ ucb = dasd('UCB','VOLUME','mvs101') /* Obtain memory address of UCB for volume MVS101 */ space = dasd('SPACE','UNIT',x2d(152)) /* Determine free space on unit 152 */ space = dasd('SPACE','VOLUME','mvs101') /* Determine free space on volume MVS101 */
Copyright © 2014 CA Technologies.
All rights reserved.
|
|