LIST STATEMENTS command
Lists one or more statements or lines from a file. It is primarily intended for viewing portions of the source listing or source file in line mode, but can also be used in full-screen mode to copy a portion of a source listing or source file to the log.
Usage notes
- The specified lines are displayed in the same format as they would appear in the full-screen Source window, except that wide lines are truncated.
- You might need to specify a range of line numbers to ensure that continued statements are completely displayed.
- This command is not to be confused with the
LIST LAST STATEMENTS
command. - In the disassembly view,
LIST STATEMENTS
is not supported. LIST LINES
orLIST STATEMENTS
without astatement_id_range
are not valid to list one or more lines, or statements, from a file. However, they are accepted commands, because they are valid in the context of theLIST LAST
command.
Examples
- List lines 25 through 30 in the source file associated with the
currently qualified compile unit.
LIST LINES 25 - 30;
- List statement 100 from the current program listing file.
LIST STATEMENT 100;
Refer to the following topics for more information related to the material discussed in this topic.
- Related references
- statement_id_range and stmt_id_spec
- LIST LAST command