|
VMS Help EXCHANGE, COPY, Examples *Conan The Librarian |
1.EXCHANGE> COPY TEST.DAT DYA0:NEWTST.DAT/VOLUME_FORMAT=RT11
The command in this example copies the contents of the file
TEST.DAT from the default disk and directory into a file named
NEWTST.DAT on an RT-11 diskette (mounted on DYA0). If a file
named NEWTST.DAT already exists, the COPY command replaces it.
The record formats are variable length on the Files-11 input
and ASCII stream on the RT-11 output.
2.EXCHANGE> COPY/LOG TEST.DAT DYA0:NEWTST.DAT
%EXCHANGE-S-DELETEPREV, previous copy of DYA0:NEWTST.DAT deleted
%EXCHANGE-S-COPIED, WRKD$:[FRED]TEST.DAT;5
copied to DYA0:NEWTST.DAT, 93 records
The command in this example is the same as in the preceding
example, except that the /LOG qualifier is included so that
the actions of the command are displayed. The /VOLUME_FORMAT
qualifier is omitted; EXCHANGE defaults to RT-11 format for the
foreign mounted diskette. Since a file named NEWTST.DAT already
exists on the diskette (from the command in the previous
example), the first copy of the file is deleted after the
second copy is successfully transferred.
3.EXCHANGE> COPY/LOG LARGE.DAT DYA0:/VOLUME_FORMAT=RT11
%EXCHANGE-S-DELETEPREV, previous copy of _DYA0:LARGE.DAT deleted
%EXCHANGE-W-RTOUTEOF, end-of-file on output _DYA0:LARGE.DAT,
insufficient space on volume
%EXCHANGE-I-PARTCOPIED, WRKD$:[FRED]LARGE.DAT;9 partially copied to
_DYA0:LARGE.DAT, 1670 records
EXCHANGE> COPY/LOG/REPLACE LARGE.DAT DYA0:/VOLUME_FORMAT=RT11
%EXCHANGE-S-DELETEPREV, previous copy of _DYA0:LARGE.DAT deleted
%EXCHANGE-S-COPIED, WRKD$:[FRED]LARGE.DAT;9 copied to
_DYA0:LARGE.DAT, 3288 records
The first command in this example fails because there is
insufficient space on DYA0 for EXCHANGE to do a normal copy
(that is, to copy the file into a temporary file on DYA0,
delete the existing file of the same name, and then rename
the temporary file).
The second command in this example includes the /REPLACE
qualifier, which directs COPY to delete an existing version of
the output file before copying the new file. The first message
generated by this command indicates that EXCHANGE has deleted
an existing file. The second message indicates that the copy
operation has successfully completed.
4.EXCHANGE> COPY MTA0:[11,132]*.COM/VOLUME_FORMAT=DOS11 [FRED.TEMP]
The command in this example copies all files with the file type
COM owned by UIC [11,132] to the subdirectory [FRED.TEMP]. The
default DOS-11 record format is STREAM. The default Files-11
record format is VARIABLE.
5.EXCHANGE> COPY/BOOT DYA0:RT11SJ.SYS DYA0:
The COPY/BOOT command in this example makes the diskette
mounted on the RX02 drive DYA0 a bootable RT-11 system.
Bootstrap information is written to the volume using the RT-11
single job monitor RT11SJ.SYS and the system device handler
DY.SYS. The diskette can be formatted in single or double
density.
6.EXCHANGE> COPY/BOOT=DX DYA0:RT11SJ.SYS DYA0:
As in the previous example, the COPY/BOOT command in this
example makes the diskette mounted on the RX02 drive DYA0 a
bootable RT-11 system. In this example, however, the system
device handler is DX.SYS, the RX01 diskette handler. The
diskette must be formatted in single density in order to boot
on the RT-11 system.
7.EXCHANGE> COPY/BOOT CSA1:CONSOL.SYS
The command in this example writes bootstrap information on the
console storage device on a VAX processor.
8.EXCHANGE> COPY DMA0:FROG.DAT/VOLUME_FORMAT=RT11-
_EXCHANGE> /RECORD=STREAM FROG4JUN.DAT/RECORD=(FIXED=80,PAD=" ")
The command in this example copies an ASCII stream file (the
default) from an RT-11 volume to the current default device and
directory. The output contains fixed-length records that are
padded to 80 bytes with the space character.
|
|