Using the MOVEFILE Command
In Using Real Printers, Punches, and Readers, the MOVEFILE command was used along with the FILEDEF command to place a file in your virtual reader. MOVEFILE is also the easiest CMS method for reading and writing labeled tapes. It reads and writes the most basic data formats. MOVEFILE copies data from one place to another using the OS simulation function. You use it with the FILEDEF and LABELDEF commands, and either the source, destination, or both can be a tape.
Because of the basic functions of OS simulation, MOVEFILE can transfer
data to tape from various sources:
- Card reader
- CMS file
- Another tape
- OS-formatted minidisk.
Similarly, it can transfer data from tape to various destinations:
- Card punch
- Printer
- CMS file
- Another tape
- OS-formatted minidisk.
For more information about the MOVEFILE command, see z/VM: CMS Commands and Utilities Reference, and z/VM: CMS Application Development Guide for Assembler.