Information
Space announcement: BMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.

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.

Warning

Important

Code multiple location, length, and data elements by separating them with commas, resulting in a logical OR condition.

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:

$$DD01 DUMP IFNOT=(23,100,C’TEST FILE’)

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,2,3’)
$$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.


Warning

Important

  • Data can only be Character/Text or Hex data (C,T, or X):
    IFNOT=(1,0,T'ABC')
     is correct.IFNOT=(1,0,P'+123')
     is wrong.
  • Multiple data is allowed:
    IFNOT=(1,0,C'ABC,DEFG,HI')
  • Can be used with ORIF/ELSE. Also IF/ORIF can be used with IFNOT/ORIFNOT.
  • IFNOT does not have ANDIFNOT.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Compuware File-AID/MVS 21.01