MPE/iX Commands Reference Manual (32650-90877)
Chapter 4 143
Command List II
Commands CALC thru COPY
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
In the next example the file MYFILE.PUB.SYS is copied to MyFile under the current
working directory (CWD). Note that the target file name has to have the dot and slash (./)
prefix.
COPY myfile.pub.sys, ./MyFile
In the next example, the file File1 under the CWD is copied to MYFILE.PUB in the current
account.
COPY ./File1, myfile.pub
In this next example, file1 in directory dir0 is copied to file2 in directory dir1.
COPY ./dir0/file1, ./dir1/file2
In the following example, the file TEST has a lockword which is the word LOCK. The file is
copied into file1 in the dir0 directory.
COPY TEST/LOCK, ./dir0/file1
The next example copies the file FILE1 to the directory dir1
COPY FILE1 ./dir1/
The next example copies the file file1 to the directory DIR1.
COPY ./file1 DIR1
Related Information
Commands FCOPY
Manuals Using the HP 3000 Series 900: Fundamental Skills