NFLIP - Negative Reverse Exclusion Status of Lines

Syntax


NFLIP

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 to be exempted from being flipped


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 occurrence of search-string.


LAST

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


NEXT

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


PREV

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


ALL

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


PREFIX

Locates search-string at the beginning of a word.


WORD

Locates 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

Locates 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


All commands that affect the exclusion status of lines are "unified" with a common design patterned after the EXCLUDE command.  That makes all of the commands very powerful. The NFLIP command formerly applied to all lines by default, but now must use ALL if you want to affect all lines.

You can use the NFLIP command to find those lines which do not have a search string, and invert the visibility state of those lines.   i.e. exclude the line if currently visible, or show the line if currently excluded.  Note that the normal selection options of X and NX are not allowed, since NFLIP must process both types of lines.   You may also wish to review "Working with Excluded Lines" for more information.


To flip the status of the next line that does not contains the letters ELSE without specifying any other qualifications:


On the Command line, type:  


NFLIP ELSE


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



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

 

On the Command line, type:


NFLIP C"ELSE"


and press Enter.


This type of search is called a character string search (note the C that precedes the search string) because it flips the next line that does not contains 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: Full-featured Documentation generator