java.lang.Object
com.ibm.jzos.DatasetVolumeList
An object which maps the 265-byte workarea returned by the LOCATE macro, preceded
by the 44-byte resolved dataset name.
- Since:
- 2.1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The buffer lengthstatic final int
The maximum number of volume entries -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
Answer the underlying byte array mapped by this object.int[]
Answer an array of ints, each containing the 4-byte device type of the corresponding volume entry.Answer a String containing the DSN returned from the LOCATE macro.int
Answer the total number of volume entries found in the catalog.String[]
Answer a String array containing the volume serial numbers.
-
Field Details
-
BUF_LEN
public static final int BUF_LENThe buffer length- See Also:
-
MAX_ENTRIES
public static final int MAX_ENTRIESThe maximum number of volume entries- See Also:
-
-
Constructor Details
-
DatasetVolumeList
public DatasetVolumeList()Construct an instance
-
-
Method Details
-
getBytes
public byte[] getBytes()Answer the underlying byte array mapped by this object.- Returns:
- byte[]
-
getTotalVolumesCount
public int getTotalVolumesCount()Answer the total number of volume entries found in the catalog. Note that only the first 20 volume entries are actually returned by LOCATE/CAMLST in this object. -
getDeviceTypes
public int[] getDeviceTypes()Answer an array of ints, each containing the 4-byte device type of the corresponding volume entry. Only the first 20 entries are returned, up to the size given bygetTotalVolumesCount()
.- See Also:
-
getVolumes
Answer a String array containing the volume serial numbers. Only the first 20 volume names are returned, up to the size given bygetTotalVolumesCount()
.- See Also:
-
getReturnedDSN
Answer a String containing the DSN returned from the LOCATE macro. This is generally the same as the input DSN, but in some circumstances, such as lookups of alias names or relative GDG names, it will return a different DSN.- Returns:
- String the DSN, with trailing blanks trimmed.
-