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.

oedit<br />

Option<br />

Usage notes<br />

Environment Variable<br />

Exit Values<br />

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

length.<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<br />

longer than the specified record length, the edit session will not load the file<br />

and will issue the customary message that a line is too long.<br />

1. oedit attempts to load the file into a VB255 session. If this is an ISPF that<br />

supports wide edit (such as ISPF 4.1) and any line exceeds 235 characters, the<br />

width for the new session is the length of the longest line plus 25% to allow for<br />

some expansion.<br />

2. The COPY command cannot copy in files that have records wider than the edit<br />

session.<br />

3. oedit attempts to open an existing file as read/write. If this fails, it will attempt<br />

opening the file read-only to allow the user to view the file. Changes made in<br />

this mode cannot be saved to the file. If changes are made, the edit session<br />

must be ended using the ISPF CANCEL primary command. However, you can<br />

use the ISPF CREATE and REPLACE primary commands to save all or part of<br />

the changed file to another file before you CANCEL the edit session.<br />

4. oedit passes the effective UID of its process to the TSO session. If the EUID<br />

does not match the EUID of the TSO process, the OEDIT TSO command will<br />

attempt to set the effective UID of the TSO process to that of the shell<br />

command prior to loading the file.<br />

5. You cannot use oedit if you used rlogin or telnet to access the z/<strong>OS</strong> shell.<br />

6. The TSO region size must be large enough to hold the size of the file to be<br />

edited.<br />

7. Two ISPF variables are available to edit macros:<br />

v HFSCWD this variable contains the path name for the directory in which the<br />

file being edited resides.<br />

v HFSNAME this variable contains the name of the file being edited.<br />

BPXWPERM<br />

Specifies the default open permissions used by oedit. Permissions are<br />

specified in octal format. No validation is done on the supplied permissions<br />

and the number will be used as the file mode on an open() call. If the file<br />

already exists the permissions are not changed. If the environment variable<br />

is not set, oedit will work as before using 0700 as the default permissions.<br />

0 The TSO/E OEDIT command was invoked for each file specified.<br />

1 Failure because oedit could not access at lease one file because single<br />

quotes or parentheses were used in the filename.<br />

2 Failure because oedit could not set 3270 passthrough mode.<br />

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