MPE/iX Commands Reference Manual (32650-90877)
142 Chapter4
Command List II
Commands CALC thru COPY
.FOO in an HFS current working directory, the file must be represented as
./.FOO.
NOTE
If the target file is a directory name it may end in a slash (/) to improve
readability of copy in scripts.
NOTE
The
max extent
value for
targetfile
value may not be the same as for
sourcefile
.
ASK If
targetfile
already exists, COPY prompts the user to choose an action
with the following prompt:
PURGE OLD
targetfile
?
Valid replies to this prompt are:
Y or YES Instructs COPY to purge the original
targetfile
and
create a new
targetfile
.
N or NO Instructs COPY to terminate.
ASK is the default, except in a job or in other cases when the user is not
using interactive mode. In such cases, ASK has no meaning, and YES
becomes the default.
YES Instructs COPY to purge
targetfile
if it already exists. No message is
displayed for the user, as would be the case with ASK. YES is the default in
jobs, or at other times when the user is not using an interactive mode.
NO Instructs COPY to terminate if
targetfile
already exists.
Operation Notes
This command performs a fast copy of
sourcefile
to
targetfile
and leaves
sourcefile
unchanged. Both files must be nonspooled disk files residing on the host system. You may
specify files that are backreferenced with a file equation (*). However, this command only
supports three file equation options: the file name, the final disposition (;TEMP or ;SAVE),
and the disk volume or volume class (;DEV= DISC or ;DEV=<DISC LDEV NUMBER>). All
other file equation options are ignored.
The file disposition of
targetfile
defaults to that of
sourcefile
. For example, if
sourcefile
is TEMP,
targetfile
is created TEMP. If
sourcefile
is PERM,
targetfile
is
created as PERM. This file disposition can be overridden by using a file equation since this is
one of the three options supported for file equations.
All file access attributes of the source file, including ACDs (access control definitions) are
duplicated for the target file.
If a source file has an ACD, the ACD is copied to the target file. If a file does not have an
ACD, and it is copied outside an MPE group, it is automatically assigned an ACD.