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.

OCOPY<br />

PATHMODE (sirwxu) PATHOPTS (ocreat, owronly)<br />

OCOPY INDD(sysin) OUTDD(pathname) TEXT CONVERT((BPXFX000))<br />

(BPXFX000 is an alias; when shipped by IBM, it points to BPXFX111.)<br />

4. The following OCOPY command copies data from one MVS sequential data set<br />

to another MVS sequential data set and performs code page conversion. This<br />

example shows just the OCOPY command; the necessary ALLOCATE<br />

commands are not included.<br />

v SYSUT1 is the ddname of the source data set.<br />

v TRANSDD is the ddname of the target data set.<br />

v This is text data.<br />

v The data is converted using the user-specified character conversion table and<br />

the TO1047 topic of the table.<br />

OCOPY INDD(sysut1) OUTDD(transdd) TEXT CONVERT(’sys1.mylib(mytab)’) TO1047<br />

OEDIT — Edit an z/<strong>OS</strong> <strong>UNIX</strong> file system file<br />

Format<br />

Description<br />

Parameters<br />

Option<br />

OEDIT [–r xx] pathname<br />

or<br />

OEDIT [–r xx] ’pathname’<br />

OEDIT enables you to edit a file in the z/<strong>OS</strong> <strong>UNIX</strong> file system. This command uses<br />

the ISPF/PDF Edit facility.<br />

If you enter OEDIT without specifying a pathname, the Edit Entry panel is<br />

displayed. From that panel, you can enter the directory name and filename of an<br />

existing file, or you can specify a directory name and filename for a new file. The<br />

Edit Entry panel also lets you specify an edit profile and an initial edit macro.<br />

For an introduction to using ISPF File Edit, see z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> User’s<br />

Guide.<br />

pathname<br />

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

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

the working directory of the TSO/E session (usually the HOME directory).<br />

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

OEDIT from the shell, use the absolute pathname. Avoid using spaces or single<br />

quotes within pathnames.<br />

–r xx Set the record length to be edited for fixed length text files. xx is the record<br />

length.<br />

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

If –r xx is specified, the file will be processed as variable length but loaded<br />

into the editor as fixed length records and saved as fixed length records.<br />

This lets you convert a variable length file to fixed length. If any lines are

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

Saved successfully!

Ooh no, something went wrong!