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.

cp<br />

cr carriage return<br />

lf line feed<br />

crlf carriage return followed by line feed<br />

lfcr line feed followed by carriage return<br />

crnl carriage return followed by new line<br />

–f Attempts to remove and replace a <strong>UNIX</strong> destination file that cannot be<br />

opened.<br />

-H Follows symbolic links specified as source operand on the command line.<br />

Symbolic links encountered in the tree traversal are not followed. This<br />

option can only be used with -R or -r option. This is the default behavior<br />

when -R or -r option specified but none of the options -H, -L or -P specified.<br />

–i When copying to a <strong>UNIX</strong> target, –i asks you if you want to overwrite an<br />

existing file, whether or not the file is read-only.<br />

-L Follows symbolic links specified as source operand on the command line<br />

and those encountered in the tree traverse. This option can only be used<br />

with -R or -r option.<br />

–M Specifies that some characters of the filename are translated when copying<br />

between a <strong>UNIX</strong> file and an MVS data set member. Characters are<br />

translated as follows:<br />

v _ (underscore) in <strong>UNIX</strong> is translated to @ in MVS DS members and vice<br />

versa.<br />

v . (period) in <strong>UNIX</strong> is translated to # in MVS DS members and vice versa.<br />

v – (dash) in <strong>UNIX</strong> is translated to $ in MVS DS members and vice versa.<br />

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

Sets the modification and access time of each destination file to that of the<br />

corresponding source file. Normally, cp sets the modification time of the<br />

destination file to the present.<br />

-P If _<strong>UNIX</strong>03 is YES, does not follow any symbolic links, neither those<br />

specified as source operand on the command line not those encountered in<br />

the tree traverse.<br />

Restriction: This option can only be used with -R or the -r option.<br />

–P params<br />

If _<strong>UNIX</strong>03 is unset or not YES, then the -P option will be treated as<br />

specifying parameters needed to create a new sequential data set if one<br />

does not already exist. You can specify the RECFM, LRECL, BLKSIZE, and<br />

SPACE in the format the CRTL fopen() function uses.<br />

SPACE=(units,(primary,secondary) where the following values are<br />

supported for units:<br />

v Any positive integer indicating BLKSIZE<br />

v CYL (mixed case)<br />

v TRK (mixed case)<br />

For example:<br />

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

SPACE=(500,(100,500)) units, primary, secondary<br />

SPACE=(500,100) units and primary only<br />

For information on how to specify these parameters, see z/<strong>OS</strong> XL C/C++<br />

Programming Guide.<br />

Note: CRTL fopen() arguments: LRECL specifies the length, in bytes, for<br />

fixed-length records and the maximum length for variable-length

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

Saved successfully!

Ooh no, something went wrong!