Create a data set based on the properties of an existing data set
Usage
zowe rse-api-for-zowe-cli create data-set <dataSetName> [options]
Positional Arguments
-
dataSetName (string)
- The name of the data set that you want to create
Options
-
--allocation-unit | --au (string)
- The allocation unit (for example, CYL for Cylinders)
-
--average-blocks | --ab (number)
- The number of average blocks (for example, 25)
-
--block-size | --bs | --blksize (number)
- The block size for the data set (for example, 6160)
-
--device-type | --dt (string)
- The device type, also known as 'unit'
-
--directory-blocks | --db | --dirblks (number)
- The number of directory blocks (for example, 25)
-
--like | --lk (string)
- Name of an existing data set to base your new data set's properties on
-
--primary-space | --ps (number)
- The primary space allocation (for example, 5)
-
--record-format | --rf | --recfm (string)
- The record format for the data set (for example, FB for "Fixed Block")
-
--record-length | --rl | --lrecl (number)
- The logical record length. Analogous to the length of a line (for example, 80)
-
--secondary-space | --ss (number)
- The secondary space allocation (for example, 1)
-
--show-attributes | -a | --pa (boolean)
- Show the full allocation attributes
-
--volume-serial | --vs (string)
- The volume serial (VOLSER) on which you want the data set to be placed. A VOLSER is analogous to a drive name on a PC.
Profile Options
Base Connection Options
-
--host | -H (string)
- Host name of service on the mainframe.
-
--port | -P (number)
- Port number of service on the mainframe.
-
--user | -u (string)
- User name to authenticate to service on the mainframe.
-
--password | --pass | --pw (string)
- Password to authenticate to service on the mainframe.
-
--reject-unauthorized | --ru (boolean)
-
--token-type | --tt (string)
- The type of token to get and use for the API. Omit this option to use the default token type, which is provided by 'zowe auth login'.
-
--token-value | --tv (string)
- The value of the token to pass to the API.
-
--cert-file (local file path)
- The file path to a certificate file to use for authentication
-
--cert-key-file (local file path)
- The file path to a certificate key file to use for authentication
Examples
-
Create a data set with default parameters and like flag:
zowe rse-api-for-zowe-cli create data-set NEW.DATASET --like EXISTING.DATASET
-
Create a data set with default parameters, like flag, and lrecl flag:
zowe rse-api-for-zowe-cli create data-set NEW.DATASET --like EXISTING.DATASET --lrecl 1024