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.

mv<br />

Options<br />

When moving records, the string ″ \n″ is moved 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 />

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 />

A file can be moved by any user who has write permission to the directory<br />

containing the file, unless that directory has its sticky bit turned on. If the file is in a<br />

directory whose sticky bit is turned on, only the file owner or a superuser can move<br />

the file.<br />

You can move:<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 file system<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 moved contains binary data. When you specify<br />

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

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

moving across a <strong>UNIX</strong> system). –B is mutually exclusive with –F, –X, and<br />

–T, i.e., you will get an error if you specify more than one of these options.<br />

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

the MVS data set member.<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 only if the source is an MVS<br />

data set and the target is a <strong>UNIX</strong> file. Only cp sets the file format for <strong>UNIX</strong><br />

to <strong>UNIX</strong> operations. For text files, when moving from <strong>UNIX</strong> to MVS, the<br />

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

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

check for end-of-line delimiters).<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 />

cr carriage return<br />

lf line feed<br />

crlf carriage return followed by line feed<br />

438 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!