z/OS TSO/E User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Editing Data Sets with the EDIT Command

z/OS TSO/E User's Guide
SA32-0971-00

The line mode TSO/E editor has two modes of operation, INPUT mode and EDIT mode. If the data set is new, the editor goes into INPUT mode and you see a line number for a line of input. If the data set already exists and contains data, the editor goes into EDIT mode.

You can change from EDIT mode to INPUT mode by typing the word input or by entering a null line. You can change from INPUT mode to EDIT mode by pressing the Enter key after a blank line of input.

The EDIT command has many subcommands, one of which is LIST. When you are in EDIT mode, you can specify the subcommand LIST to display the contents of the data set.

Example
To allocate and edit a new data set PREFIX.REPORT.TEXT with default attributes, enter:
EDIT report.text
You then see:
DATA SET OR MEMBER NOT FOUND, ASSUMED TO BE NEW
INPUT
00010
The INPUT subcommand indicates that you are in input mode. You can then type a line of data and press the Enter key to display the next available line.
INPUT
00010 This is the first line of data.
00020
To get out of INPUT mode, press the Enter key without typing information on the available line. You then go into EDIT mode:
INPUT
00010 This is the first line of data.
00020
EDIT

While in EDIT mode, you can type an EDIT subcommand, such as END, LIST, SAVE, or RUN. To read about these and other subcommands of EDIT, see Using Line Mode Edit.

To simply save the information and end the edit session, enter the SAVE subcommand followed by the END subcommand.
 INPUT
 00010 This is the first line of data.
 00020
 EDIT
save
 EDIT
end
 READY

For more information on the EDIT command, see Using Line Mode Edit.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014