On Tue, 17 Mar 2015 05:39:49 -0500, Elardus Engelbrecht wrote:
>
>Old trap for anyone trying string parsing... I sometimes fall in that trap 
>too. ;-)
> 
I did, several times, trying to find a solution.

>And you can't do a TRACE to see how lines are parsed and resolved... ouch...
>
"trace R" helps for Rexx, but not entirely'
"set -x" works for shell.

>>cmd="/bin/tsocmd XMIT" target "'DS("dsn")'"  
>
>Try this (adding a single quote character to the right of ( and to the left of 
>) ): 
>
>cmd="/bin/tsocmd XMIT" target "'DS('"dsn"')'"  
>
It's even worse.  I got it to work with:

    trace R
    lines.0 = 0
    cmd = "set -x; /bin/tsocmd ""XMIT" target "DS('"dsn"')"""
    xrc = bpxwunix(cmd, 'lines.', /* out. */, /* err. */, /* env., login, 
batch, */ ) 

(I defaulted most of the arguments in order to see the trace immediately.)

The hard one is RECEIVE -- one needs to QUEUE the reply to the prompt.
That's not always possible.

-- gil

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

Reply via email to