Products Resources Support About Us

Issuing MVS console commands from Bash script


Is it possible to execute a MVS console commmand (ie, D IPLINFO) from a Bash script and get the output? I know I can use Java or even REXX, but plain old Unix is much easier for me :slight_smile:


Hi Ocurero,

I hope this link may help you:

There are few examples of REXX usage under shell:

Using TSO/E commands in shell scripts:

Using the tso command:


take a look at oeconsol

this a a APF module and omvs command that you can issue console commands (assuming you have authority of course) directly from OMVS.
oeconsol “D A,ALL” for example
you can redirect output, grep what ever with it. very scriptable.

or just oeconsol
which drop you to a prompt and you can issue multiple console commands
end will get you out of it


Is ‘oeconsol’ still supported/updated? I don’t believe it is one of the products that Rocket supports, as I don’t see any reference to it on the download page, but I was wondering if people still use it. I have used it in the past and been very please with it, but I seem to be getting some strange behavior from it since we upgraded to z/OS 2.3. Thanks