issue_console_command
Issues MVS system and operator commands through an extended MCS console as a gated write and collects command responses for mainframe diagnostics.
Instructions
Issue an MVS system/operator command through an extended MCS console (gated write). Examples: "D A,L", "D GRS,RES=(*,SYS1.PROCLIB)", "D WLM".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | MVS command text, e.g. "D A,L" or "D GRS,RES=(*,SYS1.PROCLIB)". | |
| collectKey | No | Response key from a previous call — collects follow-up messages for that command. | |
| consoleName | No | Extended MCS console name (1–8 chars). Defaults to ZOSMF_CONSOLE_NAME. | |
| environment | No | Named target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default. |