Previous Topic: ENDNext Topic: FIND


EXCLUDE

Excludes lines that match a pattern or string. Contiguous excluded lines are displayed as a single line of dashes.

Syntax:

   EXCLUDE	
      fromstr
      [FIRST|LAST|NEXT|PREV|ALL
      [WORD|PREFIX|SUFFIX|CHAR]
      [label1 label2]
      [lcol  rcol]

Syntax Description:

fromstr

Specifies the from string. Enter a string in one of the following formats:

Character

(C'ccc')

Text

(T'ccc')

Hex

X'xx'

Packed-decimal expression

P'ppp'

PL'vvv'

UTF-16 Character

(UC'ccc')

UTF-16 Text

(UT'ccc')

FIRST

Starts searching at the beginning of the data set and excludes the first occurrence of fromstr.

LAST

Starts searching at the end of the data set and excludes the last occurrence of fromstr.

NEXT

Starts from the current cursor position, and excludes the next occurrence of fromstr.

PREV

Starts from the current cursor position, and excludes the previous occurrence of fromstr.

ALL

Excludes all occurrences of fromstr.

WORD

Excludes only complete words in the fromstr.

PREFIX

Excludes only words that begin with the fromstr.

SUFFIX

Excludes only words that end with the fromstr.

CHAR

Excludes the fromstr in any part of a word.

label1

Specifies the start point in a range of lines to which the EXCLUDE command is applied.

label2

Specifies the end point in a range of lines to which the EXCLUDE command is applied.

lcol

Specifies the leftmost column in which fromstr can appear. If rcol is not also specified, fromstr must begin in lcol.

rcol

Specifies the rightmost column in which fromstr can appear.

Alias: X