Thanks Elardus, but however many quotes I insert they are appear to be ignored. 
I've tried the command from OMVS and get the same result (see below).

Steve


/bin/tsocmd XMIT ZOS113.SA 'DS('SA2.DMXPORT.F5')

£ /bin/tsocmd XMIT ZOS113.SA 'DS('SA2.DMXPORT.F5')'                             
XMIT ZOS113.SA DS(SA2.DMXPORT.F5)                                               
INMX060I TRANSMIT command terminated.  Input dataset unusable +                 
INMX061I Allocation failed for dataset 'SA2.SA2.DMXPORT.F5' +                   
IKJ56228I DATA SET SA2.SA2.DMXPORT.F5 NOT IN CATALOG OR CATALOG CAN NOT BE ACCES
SED                                                                             
£                                                                               

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Elardus Engelbrecht
Sent: 17 March 2015 10:40
To: [email protected]
Subject: Re: using bpxwunix with tsocmd to run XMIT

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

This e-mail message has been scanned and cleared by Postini / Google Message 
Security and the UNICOM Global security systems. This message is for the named 
person's use only. If you receive this message in error, please delete it and 
notify the sender. 


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

Reply via email to