SCREEN INSERT_LINE inserts a line into a window at a position other than the first or last line. Existing lines are scrolled in the specified direction to create an open space. If the character string does not span the width of the window, it is padded with blanks.
SCREEN PUT_WITH_SCROLL is used to add lines and scroll at the first or last line in a window.
SCREEN INSERT_LINE /USING/ window_id start_row string direction rendition wrap_flag
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 |
specifies the line number at which the string is inserted and scrolling begins. |
string |
is a string expression that specifies the characters to be inserted. |
direction |
specifies the direction of the scroll. The valid values are:
|
rendition |
specifies the video attributes of the inserted text. More than one attribute may be defined by separating the attributes with plus signs. |
|
The valid video attributes are:
|
wrap_flag |
specifies the action to take if the text does not fit on the line. The valid values are:
|
SCREEN INSERT_LINE MAIN_ID 10 &
'Enter your name in this format: last, first', & @DOWN NORMAL,@WRAPThis example enters the line of text in normal video at row 10. The original line is wrapped and scrolled to the next line.
SEE ALSO: SCREEN PUT_WITH_SCROLL (later in this section).