SCREEN ERASE_LINE erases a line from the specified starting position to the end of the line by replacing each character with a blank. The cursor is positioned at the first erased character.
SCREEN ERASE_LINE /USING/ window_id start_row start_column
window_id |
is an integer system field, Global Storage (GS) field, or user-defined field that contains the window ID assigned to the window. |
start_row |
is an integer value that specifies the line at which the erase operation begins. If zero, the starting column is ignored and the current cursor position is used. |
start_column |
is an integer expression that specifies the column at which the erase operation begins. If zero, the starting row is ignored and the current cursor position is used. |
SCREEN ERASE_LINE USING MAIN_ID 10 1
This example demonstrates the blanking of line 10 of the specified window. If the information on line 10 is no longer needed, SCREEN ERASE_LINE can easily remove that information without disrupting the rest of the window.