Thanks Carlos, I am testing with ADDRESS USS, it works fine, with commands, but I am trying to run a bash script that will su to a specific userid, then ssh to a Linux server and run a script. I can get it to work in JCL and REXX BPXBATCH. There are issues when I run it as a ops rexx command, it gets to the su, a USS task is started for the userid I am su'ing to, but I cannot tell if the script completes. I may open a ticket so I can get someone to explain how the address uss process flows. I am not sure if there is a way to monitor the script or can I issue the commands in the script one at a time so OPS can monitor them for me. here is what the script is doing.
#!/bin/sh
echo
pwd
whoami
this is where i lose track of what is happening
su -s userid01
pwd
whoami
ssh -t lnx#####
cd /opt/softdev/batch/scripts
pwd
./o8967b.sh
echo this has run