Command Syntax for Sending Files to MVS/TSO

The following examples show the command syntax you can use to send files from your workstation to an MVS/TSO host:
  • To send a file from your default drive to replace a file on the MVS/TSO host:
    SEND pc.txt g:ds.script ASCII CRLF

    This command sends a workstation file named PC.TXT from your default drive to your MVS/TSO host in a host session named G. It creates or replaces a data set named DS.SCRIPT on your MVS/TSO volume.

  • To send a file from a drive other than the default to your MVS/TSO host:
    SEND a:pc.txt g:ds.script ASCII CRLF

    This command sends a workstation file named PC.TXT from a diskette in drive A to your MVS/TSO host in a host session named G. It replaces a data set named DS.SCRIPT on your MVS/TSO volume.

  • To send a file from your default drive to your MVS/TSO host and add it to the end of an MVS/TSO data set:
    SEND a:pc.txt g:ds.script ASCII CRLF APPEND

    This command sends a workstation file named PC.TXT from a diskette in drive A to your MVS/TSO host in a host session named G. It adds the file to the end of a data set named DS.SCRIPT on your MVS/TSO volume.

  • To send a file to your MVS/TSO host and add it to the end of a data set that has a password:
    SEND a:pc.txt g:ds.script/odyssey8 ASCII CRLF APPEND

    This command sends a workstation file named PC.TXT from a diskette in drive A to your MVS/TSO host in a host session named G. It adds the file to the end of a data set named DS.SCRIPT on your MVS/TSO volume. This data set has a password of odyssey8.

  • To send a file from a subdirectory on your hard disk to a partitioned data set on your MVS/TSO host:
    SEND c:\sd1\pc.txt g:ds.script (m1) ASCII CRLF

    This command sends a workstation file named PC.TXT from a subdirectory named \SD1 on your hard disk to your MVS/TSO host in a host session named G. It creates or replaces a member named M1 in a partitioned data set named DS.SCRIPT on your MVS/TSO volume.

  • To send a file from your default drive and add it as a new data set on your MVS/TSO volume:
    SEND pc.txt g:ds.script/aeneid20 ASCII CRLF LRECL(132)
         BLKSIZE(132) RECFM(V) SPACE(20,10) TRACKS

    This command sends a workstation file named PC.TXT from your default drive to your MVS/TSO host. It adds the file as a new data set named DS.SCRIPT on your MVS/TSO volume. A password of aeneid20 is assigned. The records in the data set can vary in length up to 132 characters. Data blocks are the same length as the records. Twenty tracks are set aside for this data set. If more tracks are needed, they are added in groups of 10.