Steve Austin wrote:

>I'm using bpxwunix with tsocmd to run an XMIT (see below). This works, but 
>I've been unable to prevent the TSO PREFIX, being added to dataset name; any 
>quotes I put around the dsn are ignored. Neither have I been able to set 
>NOPREFIX. Is there a way to prevent the suffix being added?

Old trap for anyone trying string parsing... I sometimes fall in that trap too. 
;-)

And you can't do a TRACE to see how lines are parsed and resolved... ouch...

>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"')'"  

Note: This is DS, then (, then single quote character, then double quote 
character, then variablename dsn, then double quote, single quote and then ).  
This is so that the datasetname have single quote chars to the left and right, 
all inside the parenthesis.

Something like this after parsing and resolving var names: cmd="/bin/tsocmd 
XMIT xyz 'DS('hlq.mlq.lq')'" 

(Double quote outside string and only single quote inside the string.)

A$$uming of course, as you write, the characters from D to ) are both inside 
double and single quote characters.

Geez, I hope I got it right... ;-)

HTH!

Groete / Greetings
Elardus Engelbrecht

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

Reply via email to