Previous Topic: INSERT Instruction of the EDIT ClauseNext Topic: REPLACE Instruction of the EDIT Clause


ERASE Instruction of the EDIT Clause

ERASE removes the specified text lines from existing comment text or module source. If the SET OPTIONS statement specifies the BEFORE IS ON option or if a SHOW instruction precedes the current ERASE instruction, the DDDL compiler will list the erased text at the terminal or on the Integrated Data Dictionary Activity List.

Syntax: ERASE Instruction of EDIT

►►─── ERAse ──┬─ FIRst ───────┬─┬────────────────────────┬────────────────────►◄
              └─ line-number ─┘ └─ TO ─┬─ LASt ────────┬─┘
                                       └─ line-number ─┘

Parameters

ERASE

Specifies an erase operation.

FIRst

Erases the first line of existing text or begins the erase operation at the first line of existing text.

line-number

Specifies an existing text line to be erased or begins the erase operation at the specified line.

TO LASt

Continues the ERASE function through the last line of existing text.

TO line-number

Continues the ERASE function through the specified line.