## zowe › rse-api-for-zowe-cli › list › data-set

List data sets that match a pattern in the data set name

#### Usage

zowe rse-api-for-zowe-cli list data-set <filter> [options]

#### Positional Arguments

- `filter` (string)

  - The name or pattern of the data set that you want to list

#### Options

- `--attributes` | `-a` (boolean)

  - Display more information about each member. Data sets with an undefined record format display information related to executable modules. Variable and fixed block data sets display information about when the members were created and modified.

#### Profile Options

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

  - The name of a (rse) 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

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

  - Reject self-signed certificates.

    Default value: true

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

    Note: The CLI does not support certificate files that require a password. For more information, search Troubleshooting PEM Certificates in Zowe Docs.

- `--cert-key-file` (local file path)

  - The file path to a certificate key file to use for authentication

#### Examples

- Show the data set "ibmuser.asm":

  - `zowe rse-api-for-zowe-cli list data-set "ibmuser.asm"`

- Show attributes of the data set "ibmuser.cntl":

  - `zowe rse-api-for-zowe-cli list data-set "ibmuser.cntl" -a`

- Show all data sets of the user "ibmuser":

  - `zowe rse-api-for-zowe-cli list data-set "ibmuser.*"`

- Show attributes of all data sets of the user "ibmuser":

  - `zowe rse-api-for-zowe-cli list data-set "ibmuser.*" -a`