DatasetOption

class zos_files.zowe.zos_files_for_zowe_sdk.datasets.DatasetOption(like: str | None = None, volser: str | None = None, unit: str | None = None, dsorg: str | None = None, alcunit: str | None = None, primary: int | None = None, secondary: int | None = None, dirblk: int | None = None, avgblk: int | None = None, recfm: str | None = None, blksize: int | None = None, lrecl: int | None = None, storclass: str | None = None, mgmtclass: str | None = None, dataclass: str | None = None, dsntype: str | None = None)

A dataclass that represents options for creating a dataset.

Parameters:
  • like (Optional[str]) – The dataset name to copy attributes from

  • volser (Optional[str]) – The volume serial number that identifies where the dataset resides or should be allocated

  • unit (Optional[str]) – Specifies the type of device on which the dataset is to be stored

  • dsorg (Optional[str]) – Defines the organization of the dataset (PS for sequential, PO for partitioned, DA for direct access)

  • alcunit (Optional[str]) – Specifies the unit of space allocation for the dataset (CYL for cylinders, TRK for tracks, BLK for blocks)

  • primary (Optional[int]) – The amount of primary space to allocate for the dataset

  • secondary (Optional[int]) – The amount of secondary space to allocate if the primary space is exhausted

  • dirblk (Optional[int]) – The number of directory blocks to allocate for a partitioned dataset

  • avgblk (Optional[int]) – The average block size for the dataset

  • recfm (Optional[str]) – The format of the records in the dataset

  • blksize (Optional[int]) – The physical block size used for the dataset

  • lrecl (Optional[int]) – The length of the logical records in the dataset

  • storclass (Optional[str]) – Specifies the storage class to be used for the dataset

  • mgmtclass (Optional[str]) – Specifies the management class

  • dataclass (Optional[str]) – Specifies the data class for the dataset

  • dsntype (Optional[str]) – Specifies the type of dataset

property alcunit: str | None

Get the unit of space allocation.

property avgblk: int | None

Get the average block size.

property blksize: int | None

Get the physical block size.

property dataclass: str | None

Get the data class.

property dirblk: int | None

Get the number of directory blocks.

property dsntype: str | None

Get the type of dataset.

property dsorg: str | None

Get the organization of the dataset.

property like: str | None

Get the dataset name to copy attributes from.

property lrecl: int | None

Get the length of logical records.

property mgmtclass: str | None

Get the management class.

property primary: int | None

Get the primary space allocation.

property recfm: str | None

Get the record format.

property secondary: int | None

Get the secondary space allocation.

property storclass: str | None

Get the storage class.

to_dict() dict[str, Any]

Return the DatasetOption as a dict.

property unit: str | None

Get the type of device.

property volser: str | None

Get the volume serial number.