On Tue, 17 Mar 2015 09:27:53 -0400, Shmuel Metz (Seymour J.)  wrote:

> on 03/17/2015  at 07:19 AM, Paul Gilmartin said:
>
>>    cmd = "set -x; /bin/tsocmd ""XMIT" target "DS('"dsn"')"""
>
>I see it now; your original code had the apostrophes around DS(foo)
>instead of just around the dsn.
> 
And the parentheses need to be protected from the shell, and if "dsn" mentions
a PDS member more parentheses need to be protected.

I sometimes post Rexx examples untested (with apologia).  This one I tested.

One might wonder, "Why was OP doing it this (Byzantine) way?"

One plausible answer:  This is the simplest (only?) form that works in all of:

o TSO TMP
o shell
o IRXJCL

I keep a UNIX directory in my SYSEXEC.  Unsupported; IBM told me so when
I submitted an ETR.  But it mostly works except for a few program checks,
always when a command successfully completes, and never more than once
per ISPF session.  I endure those, rather  than replicate EXECs in PDS and
UNIX directories.  Substance for a SER here, perhaps.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to