The Cms File Editor Xedit - IBM ZVM - FOR LINUX V6 RELEASE 1 Getting Started

Getting started with linux on system z
Table of Contents

Advertisement

v For more advanced information, see z/VM: CMS User's Guide, SC24-6173.
v For online help, type help on the CMS command line, then press the Enter key.

The CMS file editor XEDIT

CMS provides a file editor called XEDIT, which is a not only a full-screen editor,
but a powerful programming tool. XEDIT has functions similar to vi in Linux. This
topic introduces you to basic editing functions.
To enter an editing session, use the XEDIT command. Example: To create a new
file called MY FILE A, type this command and press the Enter key:
Without any modifications, an editing screen looks like this.
Numbers in the figure explanations match the reverse type call-outs in the figure:
1. File identification line. The first line displays the file name, file type, file mode
2. Message line. XEDIT communicates with you by displaying messages on the
3. File area. This part of the screen is available to display the file. You can make
xedit my file a
MY
FILE
A1 F 80 Trunc=80 Size=0 Line=0 Col=1 Alt=0
DMSXIN571I Creating new file:
4
===== * * * Top of File * * *
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7... 6
===== * * * End of File * * *
====> 7
and other file characteristics. "F 80" means the length of a line is fixed at 80
characters. "Trunc=80" means any characters beyond the 80-character length are
truncated. "Size=0" means there are no lines in this file. "Line=0" means the
current line is 0 (more about the current line in point 5 on page 16). "Col=1" is
the position of the column pointer (more about the column pointer in point 6
on page 16). "Alt=0" means the file has had no alterations.
second and third lines.
changes to the file by moving the cursor under any line and typing over the
characters, or by using special keys to insert or delete characters. You can make
as many changes as you want on the displayed lines before pressing the Enter
key. When you press the Enter key, the changes are made to the copy of the file
that is kept in virtual storage. The SAVE or FILE subcommand permanently
records those changes on the copy of the file that resides on disk.
2
3
5
3
8
1
X E D I T 1 File
Chapter 1. About z/VM
15

Advertisement

Table of Contents
loading

Table of Contents