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

3. If you specify a <strong>UNIX</strong> file as source and the MVS data set (target) does not<br />

exist, a sequential data set will be created. If the partitioned data set exists, the<br />

<strong>UNIX</strong> file will be moved to the partitioned data set member.<br />

4. If source is an MVS data set and target is a <strong>UNIX</strong> directory, the <strong>UNIX</strong> directory<br />

must exist.<br />

5. You cannot have a <strong>UNIX</strong> directory, partitioned data set, or sequential data set<br />

as source if the target is a partitioned data set.<br />

6. To move all members from a partitioned data set, you may specify the<br />

partitioned data set as source and a <strong>UNIX</strong> directory as target.<br />

MVS data set naming limitations<br />

v Data set names may only contain uppercase alphabetic characters (A-Z).<br />

Lowercase characters will be converted to uppercase during any moves to MVS<br />

data sets.<br />

v Data set names can contain numeric characters 0–9 and special characters @,<br />

#, and $.<br />

v Data set names cannot begin with a numeric character.<br />

v A data set member name cannot be more than 8 characters. If a filename is<br />

longer than 8 characters or uses characters that are not allowed in an MVS data<br />

set name, the file is not moved. You may use the –C option to truncate names to<br />

8 characters.<br />

Limitations: <strong>UNIX</strong> to MVS data set<br />

1. If you specify a sequential MVS data set that is in undefined record format, the<br />

file is moved as binary.<br />

2. If you specify a PDSE that is in undefined record format, the first file<br />

successfully moved determines in what format files will be moved. Note that<br />

PDSE does not allow mixture. So if the first successfully moved file is an<br />

executable, the PDSE will have program objects only and all other files will fail.<br />

On the other hand, if the first file is data, then all files are moved as binary.<br />

3. If you specify a PDS that is in undefined record format, <strong>UNIX</strong> executables are<br />

saved as PDS load modules. All other files are moved as binary.<br />

4. If you specify an MVS data set that is either in variable length or fixed record<br />

length and you have not set the file format, text files are moved as text, binaries<br />

as binary, and executables as binary. (IBM-1047 end-of-line delimiters are<br />

detected in the data)<br />

5. If you set the file format, the set value is used to determine if data is binary or<br />

text.<br />

Limitations: MVS data set to <strong>UNIX</strong><br />

1. If an <strong>UNIX</strong> file does not exist, one is created using 666 mode value, whether the<br />

data to be copied is binary or text:<br />

666 mode value: owner(rw-) group(rw-) other(rw-)<br />

If the data to be copied is a shell script or executable residing in a PDS or<br />

PDSE with undefined record format, the <strong>UNIX</strong> file is created using 777 mode<br />

value:<br />

777 mode value: owner(rwx) group(rwx) other(rwx)<br />

2. If a <strong>UNIX</strong> file exists and the file format is set, mv moves the file as that format.<br />

Otherwise,<br />

v load modules (PDS) are stored as <strong>UNIX</strong> executables and program objects<br />

(PDSE) are moved since they are the same as executables;<br />

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