Deleting Data From A Data Set; Inserting Data In A Data Set - IBM System 360 User Manual

Operating system: time sharing option terminal
Hide thumbs Also See for System 360:
Table of Contents

Advertisement

DELETING DATA FROM A DATA SET
If you want to delete only one line of data you do not need a
subcommand.
Indicate only the line number or an asterisk.
For example,
if you want to delete line 30, enter:
30
If you want to delete the line indicated by the current line pointer,
enter:
*
You can also use the DELETE subcommand to perform the same function.
For example,
delete 30
or
delete
*
DELETE also allows you to delete more than one consecutive line.
To
do so you can specify the line numbers of the first and last lines to be
deleted, or the number of lines to be deleted starting with the line
indicated with the current line pointer.
For example, if you want to
delete all the lines between, and including lines 15 and 75, enter:
delete 15 75
If you want to delete 12 l1nes starting with the line indicated by the
current line pointer, enter:
delete
*
12
If you want to delete all the lines in your data set, use the TOP and
DELETE subcommands in combination, specifying for DELETE a number of
lines greater than the number of lines in your data set.
top
delete
*
99999999
After the system deletes the lines you requested, the current line
pointer is positioned at the line before the first deleted line.
INSERTING DATA IN A DATA SET
To insert only one line of data in a line-numbered data set, you do not
need a subcommand; indicate only the line number.
The line number
referred to should not exist.
(That is, it should fall between two
nonconsecutive line numbers in the data set.)
For example, if you want
to insert "RECORDED DAILY IN CENTRAL" as line 22, enter:
22 recorded daily in central
The characters you want to enter must be separated from the line
number or the asterisk by a single blank or a comma. Any additional
blanks or commas are considered to be part of the input data. You may
optionally use the tab key to separate characters from the line number
or asterisk.
In this case all blanks, including the first, resulting
from the tab will be part of your input data.
The number of blanks
resulting from the tab is determined by the logical tab setting.
The
logical tab setting results from the TABSET subcommand or the default
tab setting.
Entering and Manipulating Data
41

Advertisement

Table of Contents
loading

Table of Contents