Native Inspect Manual (H06.04+)
Syntax of Native Inspect Commands
Native Inspect Manual—528122-005
4-45
list command
list command
Lists source code starting at the most recently listed location. Native Inspect reads
source from EDIT files (file code 101) and unstructured files (file code 180).
By default, Native Inspect displays 10 lines, with the current execution location in the
middle of the display, where possible. You can use the set command (environment)
with the listsize option to change the list size to a value other than 10. The show
command with the listsize option shows the current value of the list size.
For information specific to COBOL programs, see Displaying Source Lines on
page 3-2.
Alias: l
start-linespec
is the location at which the source code display is to begin. If you omit start-
linespec, Native Inspect lists source lines relative to the current program location
or the last listed source location.
end-linespec
is the location at which the source code display is to end. If you omit end-
linespec, Native Inspect lists 10 lines by default.
+
directs Native Inspect to list the next n lines after the last line listed. n is the value
of the listsize option. The default is 10 lines.
-
directs Native Inspect to list n lines preceding the last line listed. n is the value of
the listsize option. The default is 10 lines.
Locating Source Files
If the list command cannot locate the source file you want, an error message is
displayed that contains the compile-time location recorded in the object file:
•
If the base file name is unchanged (the name of the current file is the same as the
compile-time name), use the dir command to specify the subvolume that contains
the file.
list [start-linespec ][, end-linespec ]
[ + | - ]










