IFNOT
The IFNOT parameter selects specific records that do NOT contain the specified data value. It scans the specified field for the absence of a data value. IFNOT works on a not equal condition.
The maximum number of IFNOT parameters that can be entered is limited by the value of the MAXENT parameter (see MAXENT-ME).
The syntax of the IFNOT parameter is:
IFNOT=(location,length[,dupl],data[,loc2,len2[,dupl],data2]...)
location
Starting location of the data to search. Any valid actual or relative location can be used.
length
Length of the search field. The value must be at least one byte longer than the data element length. It can be any number from 0 (zero) to 255. Use 0 to scan to the end of the record.
dupl
Optional duplication factor that defines the number of times File-AID checks for the condition to be contiguously repeated, starting within the search field.
data
Data to search for in the specified search field. Only Character/Text or Hex data (C,T, or X) is valid.
loc2
Location of second entry of multiple entry.
len2
Length of second entry of multiple entry.
data2
Data of second entry of multiple entry.
Example 1:
Example 1 generates a hexadecimal print of records that do not contain the string TEST FILE in the search field beginning in location 23 and ending in location 122.
Example2:
$$DD01 PRINT IFNOT=(1,10,C’A’,17,0,C’1’,17,0,C’2’,17,0,C’3’)
Example 2 shows two types of coding to print records that do not contain the character A in location 1 through 10, OR do not have the character 1, 2, or 3 beginning in location 17 to the end of the record.