get_job_output
Retrieve spool output for a job, list available spool files, or read a specific DD with optional text search and line limits.
Instructions
Retrieve spool output for a job. Lists spool files (with optional step filter), or returns one DD content (with optional text grep and line cap).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | JES job id, e.g. "JOB01234". | |
| ddName | No | DD name (e.g. "JESMSGLG"). Omit to list available spool files. | |
| maxLines | No | Maximum output lines returned (caps at server configuration maximum). | |
| stepName | No | Filter spool inventory to files produced by this step name. Only used when ddName is omitted. | |
| searchText | No | When reading a DD, return only lines containing this text (case-insensitive grep). Applied before line capping. | |
| environment | No | Named target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default. |