Previous Topic: DELETE ALLNext Topic: DISPLAY PAGE


DISPLAY LINE

The DISPLAY LINE command displays a specified line from the work file as the current work file line. If the requested line is not the last line in the work file, subsequent lines are displayed beneath it.

In the IDD Menu Facility, DISPLAY LINE works slightly differently for pageable screens. For these screens, the DDDL compiler considers each group of lines that represents a definition to be one line of data. DISPLAY LINE displays the first line of the definition at the top of the screen I/O area.

Note: DISPLAY LINE can be used in all pageable screens except the Record Elements (RELM) screen. This is because one RELM definition (viewed by the compiler as one line) is equal to one page. The DISPLAY PAGE command is used to display multiple occurrences of the Record Elements screen.

Syntax

►►─── display LINe ─┬─ FIRst ────────┬────────────────────────────────────────►◄
                    ├─ LASt ─────────┤
                    ├─ NEXt ─────────┤
                    ├─ PRIOr ────────┤
                    ├─ line-number ──┤
                    ├─ *+line-count ─┤
                    └─ *-line-count ─┘

Parameters

FIRst

Displays the first line in the work file.

LASt

Displays the last line in the work file.

NEXt

Displays the line immediately following the first line in the screen I/O area.

PRIOR

Displays the line immediately preceding the first line in the screen I/O area. To avoid conflict with the PRINT command, PRIOR can only be abbreviated to PRIO. In the IDD Menu Facility, PRIOR can be abbreviated to PRI.

line-number

Displays the specified work file line.

*+line-count

Displays the line derived by adding line-count to the current work file line number. For example, if the current work file line number is 25, you display line 45 by specifying *+20.

*-line-count

Displays the line derived by subtracting line-count from the current work file line number. For example, if the current work file line number is 45, you display line 25 by specifying *-20.