User`s guide

COPY
/DELETE
Deletes the input file after it has been copied. The COPY/DELETE operation
does not ask you for confirmation before it executes. You must use /QUERY for
this function. If the input specification and output specification are the same,
the file is not deleted. The following command copies JSPROG.SAV to DU1, then
deletes it from device DK:
.COPY/DELETE JSPROG.SAV DU1:JSPROG.SAV
/DEVICE
Copies block for block the image of one device to another, and copies all the data
from one disk to another without changing the file structure or the location of the
files on the device. This is convenient because the bootstrap blocks also remain
unchanged. /DEVICE requires the DUP utility.
You can copy disks that are not in RT–11 format if they have no bad blocks.
When copying RT–11 disks, you should ensure the integrity of the results by
making sure the disks involved contain no bad blocks. If RT–11 encounters a bad
block during the COPY/DEVICE operation, it displays an error message. When
copying any disk, using COPY/DEVICE, make sure the output device contains
no bad blocks because this operation will write over bad blocks on the output
device.
If one device is smaller than the other, the system copies only as many blocks as
the smaller device contains. For example, if you copy a large volume to a smaller
one, you may copy the entire directory of the input volume, but not every file on
the input volume. When you copy a larger device to a smaller one, you are asked
to confirm the COPY operation. If you also use the /START and /END options
with the input specification, the confirmation is requested only if the number of
blocks to be copied is greater than the area on the output volume defined by the
/START option and the end of the output volume.
It is possible to copy blocks between disk and magtape, even though magtape is
not a random-access device. The data is stored on tape formatted in 512-byte
blocks. Because magtape is not file structured, there is room for only one disk
image on a magtape. When you use the /DEVICE option with magtape, you must
also use the /FILES option with the magtape input or output specification.
The following command copies an image of DU0 to DU1:
.COPY/DEVICE DU0: DU1:
DU1:/Copy; Are you sure? Y
Respond to the query message by typing Y and
RETURN
. Any response not
beginning with Y cancels the command and the COPY operation does not proceed.
NOTE
The COPY command does not copy track 0 of RX01
and RX02 diskettes. However, this restriction has
no impact on any COPY operations if your diskette
was supplied by Digital.
RT–11 Command Descriptions 47