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.

OCOPY<br />

Usage notes<br />

TO1047 | FROM1047<br />

TO1047<br />

Specifies that the TO topic of the character conversion table is to be used.<br />

This is usually used to convert from code page IBM-037 or ASCII to code<br />

page IBM-1047.<br />

FROM1047<br />

Specifies that the FROM topic of the conversion table is to be used. This is<br />

usually used to convert from code page IBM-1047 to code page IBM-037 or<br />

ASCII.<br />

If the CONVERT operand is specified and this operand is omitted,<br />

v Data copied from an MVS data set to a file uses the TO1047 topic of the<br />

table.<br />

v Data copied from a file to an MVS data set uses the FROM1047 topic of<br />

the table.<br />

If the CONVERT operand is specified for a copy from a file to a file or an<br />

MVS data set to an MVS data set, you must specify either TO1047 or<br />

FROM1047.<br />

1. You can use OCOPY to copy a program object from a PDSE to the file system,<br />

and it will be executable there. If you have a load module in a partitioned data<br />

set, however, you must first use the IEBCOPY program to copy the load module<br />

from a partitioned data set to a PDSE and then subsequently use OCOPY to<br />

copy the module into the file system. The IEBCOPY converts the load module to<br />

a program object.<br />

Note: You can use the linkage editor to put the load module directly into the file<br />

system.<br />

2. An executable file copied from the file system into an MVS data set is not<br />

executable under MVS. Some required directory information is lost during the<br />

copy. See z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> User’s Guide for a discussion of copying<br />

executable files.<br />

3. Data sets with spanned records are not allowed.<br />

4. When you are copying into an existing file, data is appended to the end of the<br />

file if OAPPEND is specified in PATHOPTS. Otherwise, the existing file is<br />

overwritten.<br />

5. Copying from z/<strong>OS</strong> <strong>UNIX</strong> file system text files to MVS data sets:<br />

For text files, all characters are stripped during the copy. Each<br />

line in the file ending with a character is copied into a record of<br />

the MVS data set. You cannot copy a text file to an MVS data set in an<br />

undefined record format.<br />

– For an MVS data set in fixed record format: Any line longer than the<br />

record size is truncated. If the line is shorter than the record size, the<br />

record is padded with blanks.<br />

– For an MVS data set in variable record format: Any line longer than<br />

the largest record size is truncated and the record length is set<br />

accordingly. A change in the record length also occurs if the line is short.<br />

6. Copying from z/<strong>OS</strong> <strong>UNIX</strong> file system binary files to MVS data sets:<br />

For binary files, all data is preserved.<br />

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