Command Syntax for Receiving Files from MVS/TSO

The following examples show the command syntax you can use to receive files from your MVS/TSO host to your workstation:
  • To receive a data set from an MVS/TSO host to the default drive for your workstation session:
    RECEIVE pc.txt g:ds.script ASCII CRLF

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

  • To receive a data set from an MVS/TSO host to a drive other than your default drive:
    RECEIVE A:pc.txt g:ds.script ASCII CRLF
    This command sends a data set named DS.SCRIPT from your MVS/TSO volume in a host session named G. It replaces a file named PC.TXT on a diskette in drive A.
  • To receive a data set from an MVS/TSO host and add it to a workstation file:
    RECEIVE a:pc.txt g:ds.script ASCII CRLF APPEND

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

  • To receive a data set from an MVS/TSO host and place it in a subdirectory on your hard disk:
    RECEIVE c:\sd1\pc.txt ds.script ASCII CRLF

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

  • To receive a data set that has a password from an MVS/TSO host to your default drive:
    RECEIVE A:pc.txt g:ds.script/odyssey8 ASCII CRLF APPEND

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

  • To receive a member of a partitioned data set from an MVS/TSO host to your DOS session:
    RECEIVE c:\sd1\pc.txt g:ds.script (m1) ASCII CRLF

    This command sends a member named M1 from a partitioned data set named DS.SCRIPT in a host session named G. The member is placed on your hard disk in a subdirectory named \SD1. It replaces or creates a file named PC.TXT.

  • To receive a member of a partitioned data set that has a password to your Windows session:
    RECEIVE a:pc.txt g:ds.script (m2)/ili1 ASCII CRLF APPEND

    This command sends a member named M2 from a partitioned data set named DS.SCRIPT in a host session named G. The data set has a password of ili1. The member is added to a file named PC.TXT on the diskette in drive A.