get_job_jcl
Retrieve the JCL submitted for a specific job from JES spool datasets, with an optional line limit to control output size.
Instructions
Retrieve the JCL that was submitted for a job (from JESJCLIN / JESJCL / JCL spool DDs). Supports custom line limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | JES job id, e.g. "JOB01234". | |
| 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. |