HP (Hewlett-Packard) HP 3000 Laptop User Manual


 
172 Chapter 3
Command Definitions C-E
COPY
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.
Use
This command may be invoked from a session, a job, a program, or in BREAK. Pressing
Break aborts the execution of this command and purges the targetfile.
The COPY command can be invoked in BREAK and does not suffer from process creation
overhead.
Examples
To copy ABCD.logongroup to EFG.logongroup, enter:
COPY ABCD, EFG
To copy ABCD.logongroup to ABCD.newgroup, enter:
COPY ABCD, .newgroup
To copy ABCD.grp to ABCD.logongroup, enter:
COPY ABCD.grp