LIST


General Form:

[@]LIST [title] [S][D] [start_line_number [,] ] [,end_line_number]

Where:

title = alpha_variable or a literal string


The LIST statement displays the program text currently in memory in line sequence. LIST will automatically insert page breaks if the listing is to be displayed on the screen (/005). If the optional @ sign precedes the reserved word LIST, then the listing will be taken from the currently selected global partition, if any.

If using the KCML full screen editor and debugger the functions described below are all available either from a menu option or with a series of simple keyboard or mouse operations. Refer to the separate documentation on the KCML full screen editor and debugger for more information.

The output from the LIST command can be redirected to a printer or to any Unix/DOS device or file with the SELECT LIST command.

Examples:

LIST 1000List only line 1000.
@LIST 1000,5000List lines 1000 to 5000 from the currently selected global partition.
LIST ,900List all lines up to an including line 900.
@LIST "test" 1000List line 1000 from the currently selected global partition with the word "test" as the title.
LIST S 10,50Produce an unstructured list for lines 10 through to 50.

See also:

SELECT LIST SELECT LIBRARY