EXCLUDE
COBOL | PL/I | Assembler | C Language |
The EXCLUDE command suppresses the display of a line or range of lines from the Source screen. A record of the command is written to the session log.
EXCLUDE is not valid in an unattended batch test.
Input
EXCLUDE Line Command Syntax
XX - Exclude a block of lines
The following are the parameter descriptions for the EXCLUDE command:
ALL
Keyword used to exclude all statement lines.
address (Assembler)
Address for the range of lines when the line command area indicates 24- or 31-bit addressing.
offset (Assembler)
Offset for the range of lines when the line command area is offset. Offset is a valid hexadecimal number preceded by a plus (+) sign.
statement#
A valid statement number. You can also specify a list or a range of statement numbers.
THRU
Required keyword when excluding a range of statements.
Usage Notes
ALL Languages |
- Excluded lines are replaced on the screen by a single broken line. A message is displayed noting how many lines were omitted. For example:
- - - - - - - - - - - - - - - 11 LINES NOT DISPLAYED
Use the NOLINES command to suppress the xx LINES NOT DISPLAYED message. - The only valid line commands on excluded lines are D (Delete), F (First), Fn, L (Last), and Ln.
- Excluded lines can be restored using one of the methods listed as follows:
- Use the DELETE or RESET command with the EXCLUDE keyword or the END command to restore all excluded lines throughout the program.
- A pause or trace breakpoint at an excluded line restores that line.
- Use the FIND, LOCATE, and PEEK commands to restore the excluded lines that meet the search criteria.
- Use the D line command to restore a block of excluded lines. Use the Fn or Ln line commands to restore the first or last n lines from a block of excluded lines.
- Use EXCLUDE in the Keep window to show additional kept items or to reduce the size of the Keep window.
PL/I |
- Use the THRU keyword or the X and XX line commands to reach lines that do not have statement numbers associated with them.
Examples
- To remove lines 45 through 55 from the display, enter the following:
EXCLUDE 45 THRU 55