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.

Usage notes<br />

Do not use the CONVERT parameter on files containing doublebyte data.<br />

Doublebyte data in the file system is in code page 939. If conversion to a<br />

code page other than 939 is required, you should use the iconv command.<br />

LC<br />

Specifies that the z/<strong>OS</strong> <strong>UNIX</strong> system file names can be lowercase, uppercase,<br />

or mixed. If LC is not specified, the z/<strong>OS</strong> <strong>UNIX</strong> system file names must be<br />

uppercase. File names are converted to uppercase member names.<br />

QUIET<br />

Turns off the echoing of the OGET command before a file is copied.<br />

SUFFIX(suffix)<br />

Specifies that files with the files created by (suffix) be copied and the suffix be<br />

dropped from the z/<strong>OS</strong> <strong>UNIX</strong> system file name when the PDS members are<br />

created.<br />

A suffix is an optional additional file identifier that is appended to the file name<br />

following the first period (.). It is usually used to identify the type of file.<br />

1. Avoid using OGETX with path names containing single quotes or spaces.<br />

OGETX<br />

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

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

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

format.<br />

v 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 record<br />

is padded with blanks.<br />

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

largest record size is truncated; the record length is set accordingly. A change<br />

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

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

v For an MVS data set in fixed record format: Data is cut into chunks of size<br />

equal to the record length. Each chunk is put into one record. The last record<br />

is padded with spaces or blanks.<br />

v For an MVS data set in variable record format: Data is cut into chunks of<br />

size equal to the largest record length. Each chunk is put into one record.<br />

The length of the last record is equal to the length of the data left.<br />

v For an MVS data set in undefined record format: Data is cut into chunks<br />

of size equal to the block size. Each chunk is put into one record. The length<br />

of the last record is equal to the length of the data left.<br />

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

5. Before the copy, the OGET command for a file is echoed, unless you specify<br />

the QUIET option. If you did not specify QUIET and if the command is not<br />

echoed for a file, it has not met the copy criteria and is not copied.<br />

6. If more than one file name is the same, the file is overwritten on each<br />

subsequent copy. For example, if you specify a copy of Pgma and pgma and<br />

use LC, the first file copied is overwritten. Or if you copy pgma.h and pgma.c<br />

and specify SUFFIX, the first file copied is overwritten.<br />

7. If the target data set is a PDS with an undefined record format, the files may be<br />

treated as load modules. A load module is copied by link-editing it into the target<br />

library. For the program to be able to execute, the entry point must be at the<br />

beginning of the load module.<br />

Chapter 3. TSO/E commands 851

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

Saved successfully!

Ooh no, something went wrong!