Command Syntax for Receiving Files from VM/CMS

The following examples show the command syntax you can use to receive files from a VM/CMS host. The parameters of the RECEIVE command can be combined into a single set of parentheses.
  • To receive a file from your VM/CMS A-disk to your default drive for a workstationsession:
    RECEIVE pc.txt a:cmsfile script a (ASCII CRLF

    This command sends a SCRIPT file CMSFILE from your VM/CMS A-disk in a host session named A to your workstation session. It adds the file to your default drive (diskette or hard disk) with the name PC.TXT.

  • To receive a file from your VM/CMS B-disk and replace a file on a drive other than your default:
    RECEIVE a:pc.txt a:cmsfile script b (ASCII CRLF

    This command sends a SCRIPT file named CMSFILE SCRIPT from your VM/CMS B-disk in a host session named A to a drive other than the default for your PC session. It replaces a file named PC.TXT on a diskette in drive A.

  • To receive a file from your VM/CMS A-disk and add it to the end of a file on your hard disk:
    RECEIVE c:pc.txt a:cmsfile script a (ASCII CRLF APPEND

    This command sends a SCRIPT file named CMSFILE SCRIPT from your VM/CMS A-disk in a host session named A to your workstation session. It adds the contents of CMSFILE to the end of a file named PC.TXT on your hard disk.

  • To receive a file from your VM/CMS A-disk and place it in a subdirectory on your default drive:
    RECEIVE \sd1\pc.txt a:cmsfile script a (ASCII CRLF

    This command sends a SCRIPT file named CMSFILE SCRIPT from your VM/CMS A-disk to your default drive. It creates or replaces a file named PC.TXT in a subdirectory named \SD1.