16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

|<br />

copytree<br />

Exit Values<br />

Related information<br />

pax<br />

cp — Copy a file<br />

Format<br />

Description<br />

not modified to be the same as the source directory. If is not<br />

specified, copytree runs in a mode to check the source file tree.<br />

0 Successful completion<br />

>0 An error occurred<br />

Any other value means that there were errors.<br />

If the variable _<strong>UNIX</strong>03=YES is set:<br />

cp [–cfimMUv] [–p|F format|B|T|X] [-W seqparms=params] [–Z] [–O u |<br />

c=codeset] file1 file2<br />

cp [–ACcfimMUv] [–p|F format|B|T|X] [–S suffix] [–Z] [–O u | c=codeset] file ...<br />

directory<br />

cp –R [-H|L|P] [–cfimp] [–Z] [–O u | c=codeset] source... directory<br />

cp –r [-H|L|P] [–cfimp] [–Z] [–O u | c=codeset] source... directory<br />

If the variable _<strong>UNIX</strong>03 is unset or not ″YES″:<br />

cp [–cfimMUv] [–p|F format|B|T|X] [–P params] [-W seqparms=params] [–Z]<br />

[–O u | c=codeset] file1 file2<br />

cp [–ACcfimMUv] [–p|F format|B|T|X] [–S suffix] [–Z] [–O u | c=codeset] file ...<br />

directory<br />

cp –R [-H|L] [–cfimp] [–Z] [–O u | c=codeset] source... directory<br />

cp –r [-H|L] [–cfimp] [–Z] [–O u | c=codeset] source... directory<br />

cp copies files to a target named by the last argument on its command line. If the<br />

target is an existing file, cp overwrites it; if it does not exist, cp creates it. If the<br />

target file already exists and does not have write permission, cp denies access and<br />

continues with the next copy.<br />

If you specify more than two path names, the last path name (that is, the target)<br />

must be a directory. If the target is a directory, cp copies the sources into that<br />

directory with names given by the final component of the source path name.<br />

You can also use cp to copy files to and from MVS data sets. If you specify more<br />

than one file to be copied, the target (last path name on command line) must be<br />

either a directory or a partitioned data set. If the target is an MVS partitioned data<br />

set, the source cannot be a <strong>UNIX</strong> directory.<br />

cp does not support the copying to or from GDGs. To use those MVS data sets,<br />

user must specify the real data set name.<br />

When copying records, the string ″ \n″ is copied the same way as the string ″\n″:<br />

both are read back as ″\n″, where ″\n″ indicates that z/<strong>OS</strong> C++ will write a record<br />

containing a single blank to the file (the default behavior of z/<strong>OS</strong> C/C++). All other<br />

152 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!