fetch_sysout
Fetch a mainframe job's SYSOUT, surface its return code and any abend, then purge the spool to keep the JES queue clean.
Instructions
Fetch a job's SYSOUT and surface RC + abend if present.
Detects abends inside the returned spool body and trips the abend
lockout the same way a screen-side check_for_errors would. The
spool is purged after fetch so the JES output queue stays clean.
Args:
job_id: JES job id, or "last" for the most recent.
ddname: Reserved for future per-DD filtering (requires SDSF; TSO
OUTPUT returns the union). Currently informational only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ddname | No | ALL | |
| job_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |