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

Populate a specific data set with records.
The layout of the records to add are described by a Cobol or PL/I copybook.

#### Usage

zowe file-master-plus populate data-set <name> [options]

#### Positional Arguments

- `name` (string)

  - Specifies the name of the data set to populate.

#### Options

- `--member` | `-m` (string)

  - Specifies name of the member.
    Note: Used only if the specified data set is a PDS or PDSE.
    Example: -m member1.

#### Required Options

- `--layout-member` | `--lm` (string)

  - Specifies the name of the Cobol or PL/I copybook.
    Example: --lm testlay.

- `--layout-data-set` | `--lds` (string)

  - Specifies the name of the data set that contains the layout member.
    Example: --lds fmmvs.layout.dataset.

- `--data` | `-d` (string)

  - Specifies path of the .txt/.json file of the data stream. Ensure the data stream is an array in JSON format represented by a layout data set and its member.
    Example: -d ../instream/data1.txt

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

- Populating a data set:

  - `zowe file-master-plus populate data-set fmmvs.dsname --lds fmmvs.layout.dataset --lm testlay --data ../instream/data1.txt`