COPY

Use

This command ma y be invoked from a session, a job, a program, or in break mode. Pressing 4Break5 aborts the execution of this command and purges the target￿le .

The COPY command can be in voked in break mode and does not su￿er from process creation o verhead.

Note

The target￿le max extent value may not be the same as for

 

source￿le .

 

 

 

 

Note

Directories cannot be copied using the COPY command. If

 

source￿le or target￿le is actually a directory , an error is

 

returned.

 

 

CM ￿les and temporary ￿les cannot be copied to HFS directories.

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 ￿le MYFILE.PUB.SYS is copied to MyFile under the current working directory (CWD). Note that the target ￿le name has to ha ve the dot and slash (./) pre￿x.

d

COPY myfile.pub.sys, ./MyFile

 

a

 

 

 

c

 

 

 

b

 

 

 

MPE/iX Commands 2-55