Skip to content

ZosDataSetInfo

The ZosDataSetInfo object represents a set of data set properties that can be used to create a new data set.

An empty ZosDataSetInfo object can be created using the default constructor. You can then set the desired ZosDataSetInfo properties, before using it, to create a new data set.

You can clone the properties of another data set using the GetInfo method of ZosDataSet to copy the properties of an existing data set into a new ZosDataInfo object. There is also one form of the ZosDataSetInfo constructor that initializes the properties from an existing data set. This cloned ZosDataSetInfo object can be used to create a new data set after making any desired changes to its properties.

ZosDataSetInfo Constructor

ZosDataSetInfo()

The default constructor can be used to create a new ZosDataSetInfo object. Because that constructor has no arguments, you must initialize the object by setting its properties.

ZosDataSetInfo() 

...

ZosDataSetInfo(ZosDataSet)

This constructor copies the properties from an existing data set.

ZosDataSetInfo(  
        ZosDataSet dataset )

Parameters

dataset Existing data set from which to copy properties.

ZosDataSetInfo Properties

ZosDataSetInfo exposes the properties below. All properties are read / write.

Property Type R/W Description
DataSetType ZosDataSetType R/W Data set type: Seq, Pds, Pdse
RecordFormat ZosRecordFormat R/W Record format.
RecordLength Int16 R/W Record length.
BlockSize Int16 R/W Block size.
DataClass String R/W SMS data class.
StorageClass String R/W SMS storage class.
ManagementClass String R/W SMS management class.
UnitName String R/W Unit name.
Volume String R/W Volume serial number.
SpaceUnit ZosSpaceUnit R/W Space units (cylinders, tracks, blocks)
PrimarySpace Int32 R/W Primary space quantity.
SecondarySpace Int32 R/W Secondary space quantity.
DirectoryBlocks Int32 R/W PDS directory blocks.
ExtendedAttributes ZosDataSetEAttr R/W Extended attributes: Default, No, Opt
PdseVersion Int16 R/W PDSE version number: 0 (default), 1, 2
MaxGens Int32 R/W Maximum number of PDSE member generations

...

Back to top