Good try, but I got the same STDERR results as the first one - the pipe operator is still being ignored by the PGM invocation.
I guess I have no real choice but to cp the MVS file to /tmp and run it from there with something like: // PARM='SH /tmp/temp.sh' or // PARM='SH . /tmp/temp.sh' Might also need a "chmod 700 /tmp/temp,sh" after the copy to /tmp is done for that first SH syntax. I'll try both and see what I can do. I had also earlier tried // PARM='SH . //"''TSOUSER.UNIXCMDS.SH''"' but that method cannot seem to find the MVS file. Peter -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Paul Gilmartin Sent: Sunday, April 3, 2022 2:41 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Running z/OS Unix commands from an MVS sequential dataset On Apr 3, 2022, at 12:26:58, Paul Gilmartin wrote: >> > I'll suggest > // PARM='PGM /bin/cp //"''TSOUSER.UNIXCMDS.SH''" | /bin/sh' > Oops! PGM doesn't understand Shell syntax. Maybe: // PARM='SH /bin/cp //"''TSOUSER.UNIXCMDS.SH''" /dev/fd/1 | /bin/sh' -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN