Syntax


NSHOW

search-string

[ start-column [ end-column ] ]

[ FIRST | LAST | NEXT | PREV | ALL ]

[ PREFIX | SUFFIX | WORD | CHAR ]

[ line-control-range ]

[ U | NU ]

[ color-selection-criteria ]

[ TOP ]

               

Operands


search-string

The search string that identifies the lines whose exclusion status will remain unchanged. Lines where this string is not found will be unexcluded


start-column

Left column of a range (with end-column) within which the search-string value must be found. If no end-column operand, then the search-string operand must be found starting in start-col.


end-column

Right column of a range (with start-column) within which the search-string value must be found.


FIRST

Starts at the top of the data and searches ahead to find the first non-occurrence of search-string.


LAST

Starts at the bottom of the data and searches backward to find the last non-occurrence of search-string.


NEXT

Starts at the first position after the current cursor location and searches ahead to find the next non-occurrence of search-string. NEXT is the default.


PREV

Starts at the current cursor location and searches backward to find the previous non-occurrence of search-string.


ALL

Starts at the top of the data and searches ahead to find all non-occurrences of search-string.


PREFIX

Looks for search-string at the beginning of a word.


WORD

Looks for search-string when it is delimited on both sides by blanks or other non-alphanumeric characters.


CHAR

Locates search-string regardless of what precedes or follows it.


SUFFIX

Looks for search-string at the end of a word.


line-control-range

The range of lines which are to be processed by the command. Line control ranges provide a powerful tool to customize the range of lines to be processed. The full syntax and allowable operands which make up a line control range are discussed in "Line Control Range Specification". Refer to that section of the documentation for details.


U | NU

Specifies a subset of the line range to be processed. U requests only User lines are to be processed, NU requests only non-User lines are to be processed. If neither U or NU are specified, all lines in the range will be processed.


color-selection-criteria

A request for selection based on the highlight color of the search-string. Color requests provide another powerful tool to control search selection. The full syntax and allowable operands which make up a color-selection-criteria  are discussed in "Color Selection Criteria Specification". Refer to that section of the documentation for details.


TOP

Normally, at the completion of the command, the first, or only, line processed is highlighted (if it is on the current screen) or the screen is scrolled to the 2nd screen line (as ISPF does) if the line is not on the current screen. If TOP is coded, then the line is always positioned as the top line of the screen, regardless of its current location.


 

Abbreviations and Aliases

 

PREFIX can also be spelled as PRE or PFX

SUFFIX can also be spelled as SUF or SFX

WORDS can also be spelled as WORD

CHARS can also be spelled as CHAR

 

Description


You can use the NSHOW command to look for a search string, and unexclude the lines that do not contain the string from the display. Note that the normal selection options of X and NX are not allowed, since NSHOW operates only on excluded lines. See Working with Excluded Lines for more information.


To un-exclude the next excluded line that does not contain the letters ELSE without specifying any other qualifications:


On the Command line, type:  


NSHOW ELSE


Press Enter. Since no other qualifications were specified, the letters ELSE can be:  


    • Uppercase or a mixture of uppercase and lowercase (assuming that CASE T is in effect)
    • At the beginning of a word (prefix), the end of a word (suffix), or the entire word (word)  
    • Anywhere within the current boundaries.


To unexclude the next line that does not contains the letters ELSE, but only if the letters are uppercase:

  

On the Command line, type:


NSHOW C"ELSE"


and press Enter. 


This type of exclusion is called a character string exclusion (note the C that precedes the search string) because it searches for the letters ELSE only if the letters are found in uppercase. However, since no other qualifications were specified, the exclusion occurs no matter where the letters are found on a non-excluded line, as outlined in the previous list.

Created with the Personal Edition of HelpNDoc: Simplify Your Help Documentation Process with a Help Authoring Tool