ims_command
Issue IMS commands through the z/OS system console, including display and operational commands, with optional follow-up response collection.
Instructions
Issue an IMS command through the z/OS system console (gated write). Commands are prefixed with "/", e.g. "/DIS ACTIVE", "/DIS TRAN TRAN1", "/DIS PROG PGM1".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | IMS command, e.g. "/DIS TRAN TRAN1" or "DIS A" (slash added if missing). | |
| collectKey | No | Response key from a previous call — collects follow-up messages. | |
| consoleName | No | Console name; defaults to ZOSMF_CONSOLE_NAME. | |
| environment | No | Named target environment (see list_environments), e.g. "dev", "prod". Omit to use the server default. |