read_dataset
Reads sequential dataset or PDS member content with optional member, line limit, and EBCDIC encoding hints, helping agents inspect mainframe data while capping output.
Instructions
Read the content of a sequential dataset or a PDS member (output is line-capped). Supports custom line limits and EBCDIC encoding hints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dsn | Yes | Dataset name, e.g. "SYS1.PROCLIB". | |
| member | No | PDS member name (1–8 chars). Omit for a sequential dataset. | |
| encoding | No | Text encoding hint. Use "ibm1047" for EBCDIC datasets that the Zowe SDK may not auto-convert. | |
| maxLines | No | Maximum lines to return (caps at server configuration maximum). | |
| environment | No | Named target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default. |