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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Options<br />

blanks in your output are read back as blanks, and any empty (zero-length) records<br />

are ignored on input. However, if the environment variable _EDC_ZERO_RECLEN<br />

is set to Y before calling cp, an empty record is treated as a single newline and is<br />

not ignored. Also, if _EDC_ZERO_RECLEN is set to Y, a single newline is written to<br />

the file as an empty record, and a single blank will be represented by ″ \n″.<br />

You can copy:<br />

v One file to another file in the working directory<br />

v One file to a new file on another directory<br />

v A set of directories and files to another place in your file system<br />

v A <strong>UNIX</strong> file to an MVS data set<br />

v An MVS data set to a filesystem<br />

v An MVS data set to an MVS data set<br />

–A Specifies that all suffixes (from the first period till the end of the target) be<br />

truncated. –A has precedence over –M and –C options. –S will be turned<br />

off if –A is the last option specified.<br />

–B Specifies that the data to be copied contains binary data. When you specify<br />

–B, cp operates without any consideration for characters or<br />

special characteristics of DBCS data. (This type of behavior is typical when<br />

copying across a <strong>UNIX</strong> system.) Because –B is mutually exclusive with –F,<br />

–X, and –T, you will get an error if you specify more than one of these<br />

options.<br />

–C Specifies truncating the filename to 8 characters to meet the restriction in<br />

the MVS data set member.<br />

–c (<strong>UNIX</strong> to <strong>UNIX</strong> only)<br />

Prompts you to change the diskette if there is not enough room to complete<br />

a copy operation. This option has no effect on systems without floppy<br />

drives.<br />

Note:<br />

Rule: The parent directories must already exist on the new target diskette.<br />

–F format<br />

Specifies if a file is binary or text and for text files, specifies the end-of-line<br />

delimiter. Also sets the file format to format if the target is a <strong>UNIX</strong> file. For<br />

text files, when copying from <strong>UNIX</strong> to MVS, the end-of-line delimiter will be<br />

stripped. When copying from MVS to <strong>UNIX</strong>, the end-of-line delimiter will be<br />

added (Code page IBM-1047 will be used to check for end-of-line<br />

delimiters.)<br />

If setting format fails, a warning will be displayed. However, cp will continue<br />

to copy any remaining files specified to be copied.<br />

–F is mutually exclusive with –B, –X, –p, and –T. If you specify one of<br />

these options with –F, you will get an error. If –F is specified more than<br />

once, the last –F specified will be used.<br />

For format you can specify:<br />

not not specified<br />

bin binary data<br />

Or the following text data delimiters:<br />

nl newline<br />

cp<br />

Chapter 2. Shell command descriptions 153

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

Saved successfully!

Ooh no, something went wrong!