Native Inspect Manual (H06.13+, J06.03+)

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 (page 47).
list [start-locspec][,end-locspec] [+|-]
Where:
start-locspec
The location at which the source code display is to begin. If you omit start-locspec, Native
Inspect lists source lines relative to the current program location or the last listed source location.
See Syntax of locspec (page 59).
end-locspec
The location at which the source code display is to end. If you omit end-locspec, Native
Inspect lists 10 lines by default. See Syntax of locspec (page 59).
+
Directs Native Inspect to list the next n lines after the last line listed. The variable nis the value
of the listsize option. The default is 10 lines.
-
Directs Native Inspect to list n lines preceding the last line listed. The variable nis the value of
the listsize option. The default is 10 lines.
The list command warns you if it detects that the timestamp for a source file differs from the timestamp
stored during compilation. For example:
(eInspect):
Warning: Timestamp mismatch for \SIERRA.$OS.SHENDEV.AC
Source modification time at present: 2007-04-04 11:05:09
Source modification time at compilation: 2007-04-04 11:04:07
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.
Otherwise, use the map-source-name (map) Command to map the compile-time file name to
the current name. You can copy and paste the path name displayed in the error message as
the left-hand argument to the map command.
For examples of locating source files, see Optionally Determining the Compilation-Time Source
File Name (page 36) and Optionally Configuring a Search Path for Your Source Files (page 36).
For additional details regarding COBOL programs, see Chapter 3: Using Native Inspect With
COBOL Programs.
Repeating the list Command
After you enter a list command, you can repeat it by pressing the Enter key at the next Native
Inspect prompt. The effect is the same as if you had entered another list command with no
parameters: listing continues with the line following the most recently listed line. This ability to
repeat continues until you enter another Native Inspect command.
Examples
Use the following command to list a source:
(eInspect 1,463): list
377 */
378 printf( "%s building PCBReadyList: 0, 2, 4\n", getStepPrefix( 2 ) );
379 PCBList_add( &PCBReadyList, PCBList.entry[0] );
380 pcb = PCBList.entry[0]->ref.pcb;
list Command 95