Running a MVS or TSO Rexx program from the z/OS Unix environment
You probably know that you can use Rexx programs in z/OS Unix.
What you may not know is that you can also run a TSO or MVS Rexx program from the z/OS Unix environment.
There is a unix command called tso for this. It works as simple as this:
tso –t “exec ‘YOUR.MVS.REXXPDS(TESTREXX)’ EXEC”
will execute your TESTREXX program.
You may want or need to allocate TSO datasets or other datasets in order to execute the Rexx.
You can simply allocate these through the export command.
export ddname=YOUR.MVS.DATASET
You can add these exports to you shell script, or add them to your .profile.
If you’re working with Rexx and z/OS Unix, you’re already doing modern mainframe development. Want to understand how this fits into a broader modern mainframe development strategy—including DevOps, CI/CD, and automation? My book Don’t Be Afraid of the Mainframe covers modern development practices in depth.
