## zowe › file-master-plus › rename › data-set

Rename a data set.
It supports all data set types that are supported by File Master Plus.

#### Usage

zowe file-master-plus rename data-set <old> <new> [options]

#### Positional Arguments

- `old` (string)

  - Specifies the name of the data set that you want to rename.

- `new` (string)

  - Specifies the new name of the data set.

#### Options

- `--vsam-component` | `--vsamc` (string)

  - Rename the data and index components of a VSAM cluster if they share the cluster name.
    Note: Used only if the target data set is a VSAM cluster.
    Example: --vsamc y.

    Default value: n
    Allowed values: y, n

#### FMP Connection Options

- `--host` | `-H` (string)

  - Specifies File Master Plus server host name.

- `--port` | `-P` (number)

  - Specifies File Master Plus server port.

    Default value: 51914

- `--user` | `-u` (string)

  - Specifies Mainframe user name. May be the same as TSO login.

- `--password` | `--pass` | `--pw` (string)

  - Specifies Mainframe password. May be the same as TSO password.

- `--protocol` | `-o` (string)

  - Specifies File Master Plus REST API protocol.

    Default value: https
    Allowed values: http, https

- `--reject-unauthorized` | `--ru` (boolean)

  - Reject self-signed certificates.

    Default value: true

- `--base-path` | `--bp` (string)

  - The base path for your API mediation layer instance. Specify this option to prepend the base path to all FMP resources when making REST requests. Do not specify this option if you are not using an API mediation layer.

#### Profile Options

- `--fmp-profile` | `--fmp-p` (string)

  - The name of a (fmp) profile to load for this command execution.

- `--base-profile` | `--base-p` (string)

  - The name of a (base) profile to load for this command execution.

#### Base Connection Options

- `--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

- Renaming a data set:

  - `zowe file-master-plus rename data-set fmmvs.old.dsname fmmvs.new.dsname`

- Renaming a VSAM data set along with its components:

  - `zowe file-master-plus rename data-set fmmvs.oldvsam.dsname fmmvs.newvsam.dsname --vsamc y`