VMS Help  —  SEARCH  Qualifiers  /WINDOW
       /WINDOW[=(n1,n2)]
       /NOWINDOW (default)

    Specifies the number of lines to be displayed with the search
    string.

    If you specify n1 and n2, the /WINDOW qualifier displays n1 lines
    above the search string, the search string, and n2 lines below
    the search string. Either of these numbers can be zero.

    If you specify the /WINDOW qualifier without the values n1 and
    n2, two lines above the search string, the search string, and the
    two lines below the search string are included in the output.

    If you specify the /WINDOW qualifier with a single number (n1),
    n1 specifies the number of lines to display including the search
    string. Half the lines precede the matched search string and
    half follow it. (If n1 is even, one line is added to the lines
    following the matched search string.)

    For example, if you specify /WINDOW=10, nine additional lines
    are listed along with the line containing the search string. Four
    lines are listed above the line containing the search string and
    five lines are listed below it, for a total of 10 lines.

    If you specify /WINDOW=0, the file name of each file containing
    a match (but no records) is included in the output. This
    specification creates a file (using the /OUTPUT qualifier) that
    can be inserted into a command file to manipulate the files
    containing matches.

    If you omit the /WINDOW qualifier, only the line containing a
    match is displayed.

    The /WINDOW qualifier displays a line of 30 asterisks to separate
    each window within a file.
Close Help