COPY

 

 

 

Valid replies to this prompt are:

 

Y or YES

Instructs COPY to purge the original target￿le

 

 

and create a new target￿le .

 

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 in teractive mode. In such cases, ASK has no

 

meaning, and YES becomes the default.

YES

Instructs COPY to purge target￿le if it already exists. No

 

message is displa yed for the user, as w ould be the case with

 

ASK. YES is the default in jobs, or at other times when the user

 

is not using an in teractive mode.

NO

Instructs COPY to terminate if target￿le already exists.

 

You may not specify system-wide ( $ pre￿x), CM KSAM, or

 

privileged ￿les as source￿le or target￿le .

Operation Notes

This command performs a fast cop y of source￿le to target￿le and leaves source￿le unchanged. Both ￿les m ust be nonspooled disk ￿les residing on the host system. You may specify ￿les that are bac kreferenced with a ￿le equation (*). However, this command only supports three ￿le equation options: the ￿le name, the ￿nal disposition ( ;TEMP or ;SAVE), and the disk v olume or volume class (;DEV= DISC or ;DEV=<DISC LDEV NUMBER> ). All other ￿le equation options are ignored.

The ￿le disposition of target￿le defaults to that of source￿le. For example, if source￿le is TEMP, target￿le is created TEMP. If source￿le is PERM, target￿le is created as PERM. This ￿le disposition can be o verridden by using a ￿le equation. This is one of the three options supported for ￿le equations.

All ￿le access attributes of the source ￿le, including A CDs (access control de￿nitions) are duplicated for the target ￿le.

If a source ￿le has an A CD, the ACD is copied to the target ￿le. If a ￿le does not have an ACD, and it is copied outside an MPE group, it is automatically assigned an ACD.

2-54 MPE/iX Commands