L - List

Lists lines from the current or named item. See also RETURN Key and L (Locate).

Syntax

L{n}{(file-specification {item-id}}{)}
or
Lm-k{(file-specification {item-id}}{)}
or
Lm,n{(file-specification {item-id}}{)}

Syntax Elements

n specifies the number of lines to list, beginning with the next line. If you list lines from the bottom of the item, the listing begins with line 1 of the item.

m-kspecifies lines m to k inclusive.

m,nspecifies n lines, starting at and including line m.

file-specifier specifies a file that contains the item you want to list. You can specify the current file.

item-id is the name of the item in the specified file that you want to list (default is to use the current item-id in the specified file).

Listing Lines From a Different Item

You can list lines from a named file (which can be the current file) and item. Note that there is no space between the L, the optional range parameters, or the left parenthesis used to specify the file and item. All lines listed using this syntax are displayed with an asterisk (*) appended to the line number.

Column Zone Display

The Z (Zone) command allows you to restrict the display to a specified column range.

Example

:ED BP 17-364
Top
.L22
001 AAA
002 BBB
EOI 002
.L99(INVENTORY 25-136
001* KKK
002* LLL
EOI 002