I'm using the XMIT command to archive a dataset. But I can't choose the volume of the xmit file. The dataset I'm archiving is on a specific volume and I want the xmit archive on the same volume but there is no such option to acheive that.
I use this command on z/OS UNIX:
/bin/tsocmd "XMIT N1.USER DA('"DATASET.TO.ARCHIVE"') OUTDATASET('"DATASET.TO.ARCHIVE.XMIT"') NOLOG"
Looking at the command, you can specify OUTDD or OUTFILE to refer to a pre-allocated file for the output. If you issue the command using JCL and IKJEFT01, you could pre-allocate the XMIT file in the JCL using IEFBR14 and whichever volume you like? I've just tried this with a pre-allocated file and it worked.