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.

Parameters<br />

Option<br />

If you enter the OBROWSE command without specifying a pathname, the Browse<br />

Entry panel is displayed. From that panel, you can enter the directory name and<br />

filename of an existing file you want to browse. If you are browsing fixed-length<br />

records, you must also indicate the record length.<br />

pathname<br />

Specifies the pathname of the file to be browsed. The pathname can be<br />

absolute or relative. It can be enclosed in single quotes. A relative pathname is<br />

relative to the working directory of the TSO/E session (usually the HOME<br />

directory). Therefore, you should usually specify an absolute pathname. If you<br />

enter the OBROWSE command from the shell, use the absolute pathname.<br />

Avoid using spaces or single quotes within the pathname.<br />

-r xx<br />

Sets the record length to be browsed for fixed length text files. xx is length. If -r<br />

xx is specified, the file will be processed as fixed length records. This lets you<br />

convert a variable length file to fixed length for viewing.<br />

OCOPY — Copy an MVS data set member or z/<strong>OS</strong> <strong>UNIX</strong> file to another<br />

member or file<br />

Format<br />

Description<br />

OCOPY INDD(ddname1) OUTDD(ddname2)<br />

BINARY | TEXT<br />

CONVERT(character_conversion_table | YES | NO)<br />

PATHOPTS (USE|OVERRIDE)<br />

TO1047 | FROM1047<br />

You can use the OCOPY command to copy data between an MVS data set and the<br />

z/<strong>OS</strong> <strong>UNIX</strong> file system. For OCOPY, you would want to use CONVERT for these<br />

two situations:<br />

v Conversion between code pages IBM-037 and IBM-1047<br />

v Conversion between ASCII and code page IBM-1047<br />

The z/<strong>OS</strong> shell uses code page 1047, and MVS uses a Country Extended Code<br />

Page. You can convert data to or from code page 1047 while it is being copied.<br />

If you are copying a file with doublebyte data, do not use the CONVERT option.<br />

Before using the OCOPY command, you must allocate the data set or file you are<br />

working with. When using the TSO/E ALLOCATE command or a JCL DD statement<br />

to allocate a file or data set, you can specify PATHMODE and PATHOPTS<br />

parameters along with the PATH parameter. For information on the use of these<br />

parameters with the JCL statement, see z/<strong>OS</strong> MVS JCL Reference. For information<br />

on the TSO/E ALLOCATE command, see z/<strong>OS</strong> TSO/E <strong>Command</strong> Reference.<br />

You can use OCOPY to copy:<br />

v A member of an MVS partitioned data set (PDS or PDSE) to a file<br />

v An MVS sequential data set to a file<br />

v A file to a member of an MVS PDS or PDSE<br />

OBROWSE<br />

Chapter 3. TSO/E commands 839

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

Saved successfully!

Ooh no, something went wrong!