Copy - ZiLOG Z80-RIO Operating System User's Manual

Table of Contents

Advertisement

5.7
COpy
SYNTAX
COpy
COpy file 1 file 2 (A I U I 0 I RL=record length I
T=type)*
DESCRIPTION
Copies file 1 (using a READ BINARY request) to file 2 (using
a WRITE BINARY request).
When the A (Append)
option is
I
specified, file
1
is copied (initially using a READ CURRENT
request) to fil;
2
(initially using a WRITE CURRENT request)
so that the first byte of file
1
is placed immediately after
the last byte of file 2.
The copy command then proceeds as
before.
Either file
I
or file 2 may be devices or fully
qualified names.
FILE attributes of file
1
are transferred
to file_2. The options A (Append)', U (Updite),
0
(Output)
are used to specify the type of open request performed on
the destination file, file
2.
The A (Append) option should
I
only'be used with ASCII files.
See Chapter
6
for details.
The default record length and type of file 2 will be the
same as file
1.
These attributes can be overridden by
specifying one of
80, 100, 200, 400, 800
or
1000
for record
length, or one of D (directory),
B
(binary), A (ASCII) or P
(procedure) for type.
In the event that the destination
file or device is unable to support the record length
attribute of the source file, the 'message
WARNING: RECORD LENGTH CHANGED
will be issued and the default attributes of the destination
device will be used.
*** WARNING ***
If the record length of the destination file is not the
same as the record length of the source file, either
because the RL=record length option was specified or
due to automatic record length modification (see above),
the BYTECOUNT field in the source file's descriptor
record is used to determine the number of bytes in
the last record.
In the event this value is incorrect,
file truncation may result.
E3-0072-0l, Rev. B
-47-
10/31/79

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z80-RIO and is the answer not in the manual?

Table of Contents