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.
You can add these exports to you shell script, or add them to your .profile.