Open-source Languages & Tools for z/OS

 View Only
  • 1.  Issuing MVS console commands from Bash script

    Posted 11-03-2016 06:51

    Hi,

    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:

    Thanks!



  • 2.  RE: Issuing MVS console commands from Bash script



  • 3.  RE: Issuing MVS console commands from Bash script

    Posted 06-08-2017 12:18

    take a look at oeconsol
    https://www-03.ibm.com/systems/z/os/zos/features/unix/bpxa1ty2.html

    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

    Sandra



  • 4.  RE: Issuing MVS console commands from Bash script

    Posted 12-12-2018 13:47

    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

    John