Technical data
Using Files and Directories
10.8 Copying and Transferring Files
3. Enter the MOUNT command to mount the volume and write files to it, as in
the following example:
$ MOUNT TAPE_DEVICE: GMB001
%MOUNT-I-MOUNTED, GMB001 mounted on _MTA2:
$ COPY *.* TAPE_DEVICE:
The MOUNT command specifies the device name and volume label of the
volume on the device. The COPY command copies the highest version of each
file in your default directory onto the tape. The file names, file types, and
version numbers of the output files default to the same file names, file types,
and version numbers as the input files.
If you enter the COPY command with the /LOG qualifier, the system sends a
message to the current SYS$OUTPUT device after it copies each file.
4. You can also use the DIRECTORY command to verify that the files were
copied successfully.
$ DIRECTORY TAPE_DEVICE:
This DIRECTORY command lists the file names and file types of all files on
the tape.
5. When you finish using the magnetic tape, dismount and deallocate it as
follows:
$ DISMOUNT TAPE_DEVICE:
$ DEALLOCATE TAPE_DEVICE:
If you do not dismount and deallocate the magnetic tape, the system does so
automatically when you log out.
The following examples illustrate ways of copying files to tape volumes.
Examples
1.
$ COPY *.* MTA2:
For this example, assume that MTA2: has been allocated to your process and
that a tape volume has been initialized and mounted on that device. The
COPY command writes files to the MTA2: tape volume.
The highest versions of all files in your default disk directory are copied to the
tape volume. The file names, file types, and version numbers of the output
files default to the same file names, file types, and version numbers as the
input files.
2.
$ COPY/LOG FORTAP.DAT MTA1:"%&*?!SKI! "" "
%COPY-S-COPIED, WRKD:[MANUAL]FORTAP.DAT;1
copied to MTA1:[]"%&*?!SKI! """.;0 (120 records)
In this command for copying from disk to tape, a tape file name is specified
as the output file specification. Note that the trailing space in the file name
%&*?!SKI!#"# (where # means space) is not present because trailing spaces
are not significant in tape names.
10–32 Using Files and Directories










