UPDATE -- deletes one or more records from the source
file. The format of the DELETE control statement is:
r --------------------------------,
i ./ D seqnol ( seqno2] [$] , L __________________________________________-J segnol
segno2 $ is the sequence number identifying the first or only
record to be deleted.
is the sequence number of the last record to be
deleted.
is an optional delimiter indicating the end of the
control fields.
All records of the input file, beginning at seqnol, up to and
including the seqno2 record, are deleted from the output file. If the
seqno2 field is omitted, only a single record is -- replaces one or more input records with
updated records from the update file. The format of the REPLA:E control
statement is: r-- --, I .1 R segnol [seqno2] [$ [seqstrt [seqincr]]]1 L -.I segnol segno2
$
seqstrt
seqincr
is the sequence number of the first input record to be replaced.
is the sequence number of the last record to be
replaced.
is an optional delimiter key indicating that the
substituted records are to be sequenced incrementally.
is a one-to eight-digit numeric field specifying the
first decimal number to be used for sequencing the
substituted records.
is a one-to eight-digit numeric field specifying the
decimal increment for sequencing the substituted
records. All records of the input file, beginning with the seqno1 record, up
to and including the seqno2 record, are replaced in the output file by
the records following the ".1 pll statement in the update file, up to the
next control statement. As with the ".1 D" (delete) function, if the
segno2 field is omitted, only a single record is replaced, but it may be
replaced by more than a single inserted record. The "./ R" (replace)
function is performed as a delete followed by an insert: thus, the
number of statements inserted need not match the number deleted. The
dollar sign ($), segstrt, and seqincr processing is identical to that
for the insert function.
Section 2. eMS Commands 205
Previous Page Next Page