Command Syntax for Sending Files to VM/CMS
- To send a workstation file from your default drive and add it as a new
file on your VM/CMS A-disk:
SEND pc.txt a:cmsfile script a (ASCII CRLF LRECL 72 RECFM V
Note: If you use a command that exceeds one line, do not press Enter when you fill that line; continue typing your command.This command sends a workstation file named PC.TXT from your default drive to your host in your host session named a. You do not need to specify the workstation drive if the file you are sending is on the current drive. The command creates a new file, named CMSFILE SCRIPT, on your A-disk. The records in the file can vary in length up to 72 characters.
- To send a workstation file from your default drive to replace a file
on your VM/CMS A-disk:
SEND pc.txt a:cmsfile script a (ASCII CRLF
This command sends a workstation file named PC.TXT from your default drive to your VM/CMS A-disk in your host session named a. You do not need to name the workstation drive if the file you are sending is on the default drive. The file replaces a SCRIPT file named CMSFILE. The new CMSFILE has the same record length and format as the old CMSFILE.
If you do not have a file called CMSFILE SCRIPT on your A-disk, PC.TXT is added to your A-disk as a new file called CMSFILE SCRIPT. The records in the file are 80 characters long and have fixed length.
- To send a binary workstation file from a drive other than your default
drive:
This command sends a workstation file named PC.EXE from a diskette in drive A to your VM/CMS B-disk in your host session named c. It is a new file, or it replaces a file named CMSFILE.SEND a:pc.exe c:cmsfile exebin b (recfm v
When transferring a binary file, you must specify a variable record format (recfm v), otherwise, blank characters are added to the file.
- To send a file from your hard disk and add it to the end of a
file on your VM/CMS A-disk:
This command sends a workstation file named PC.TXT from your hard disk to your host session. You do not need to name the host session if you are sending to the a session. The file is added to the end of a script file named CMSFILE on your VM/CMS A-disk.SEND c:pc.txt cmsfile script a (ASCII CRLF APPEND
- To send a file from a subdirectory on your hard disk to your VM/CMS
A-disk:
This command sends a file named PC.TXT from subdirectory SD1 on your hard disk to your host session. It replaces a SCRIPT file named CMSFILE on your VM/CMS A-disk.SEND c:\sd1\pc.txt cmsfile script a (ASCII CRLF