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.

untagged files. For a description of the default behavior, see<br />

“Automatic conversion and file tagging behavior for mv.”<br />

–O u | c=codeset<br />

Allow automatic conversion on source and target files.<br />

–O u If the target exists and is not empty or already<br />

tagged, mv will not change the target’s tag in order<br />

for the target to be a candidate for automatic<br />

conversion.<br />

For new targets and existing, untagged, empty files,<br />

this option has no effect and mv behaves the same<br />

as the default. For a description of the default<br />

behavior, see “Automatic conversion and file<br />

tagging behavior for mv.”<br />

When using mv to move from a <strong>UNIX</strong> file to an<br />

MVS data set, if the source is a tagged text file,<br />

then it may be a candidate for automatic<br />

conversion.<br />

When using mv to move executables from or to<br />

MVS, automatic conversion is disabled for both<br />

source and target.<br />

–O c=codeset For a detailed description of the behavior of this<br />

option on mv, see “Automatic conversion and file<br />

tagging behavior for mv.” To prevent the corruption<br />

of text files, mv will fail if it cannot set the tag to<br />

text or codeset.<br />

Attention: If automatic conversion is not set<br />

properly or the source is not tagged properly, the<br />

target may end up with a tag codeset which does<br />

not match the file content.<br />

Automatic conversion and file tagging behavior for mv<br />

The following tables describe the behavior of file tagging and automatic conversion<br />

for various source and target scenarios depending on whether the –O option is<br />

specified on the mv command.<br />

mv<br />

Chapter 2. Shell command descriptions 441

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

Saved successfully!

Ooh no, something went wrong!