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.

Specifying a field number to conduct a search for invalid data


You can use the FIND primary command to search for and display data that matches the search condition. When you specify the VALID or INVALID parameters with the FIND command, you must identify a field in the record layout.

File-AID compares the actual data in the specified field of each record with the field declaration in the record layout. If File-AID finds a match, valid or invalid as specified, it repositions the field at the top of the display and places an informational message at the top right-hand corner of the screen.

When indicating the record layout field, you enter a forward slash (/) followed by either a full or partial field name or the File-AID assigned field number.


Warning

Important

If field numbers are not already displayed as shown in the following figure issue the SHOW NUMBER command.

Search for INVALID data in field 19 - FIND INVALID /19

image2021-6-16_12-0-0.png

Steps:

  1. Type FIND INVALID /19 in the COMMAND field.
  2. Press Enter. File-AID finds invalid data in field 19 (EMP-NATL-TAX-WITHOLD-PCT) of record number 4. The layout is scrolled to show field 19’s data at the top of the display.

Result of FIND INVALID /19

Notice the message X'404040' FOUND in the top right corner of the screen. Press PF1 to see the long description of this (or any) message: FS407 Search for /19 EQ INVALID was successful.

The cursor is positioned in the data area on the X'40... The invalid data is automatically displayed in hex for easy viewing and correction.

Edit - Formatted Mode - FIND INVALID Result

image2021-6-16_12-0-42.png

More About the FIND Command:

  • If you enter the FIND command without specifying any parameters, the FIND Command screen is displayed to assist you with FIND command entry and syntax (see Searching-for-data-using-the-FIND-primary-command).
  • File-AID assigns field numbers sequentially, starting at the top of the record layout. Each elementary or group data item name is assigned a unique field number. If a data item occurs more than once, each occurrence is assigned the same field number, since each data item shares the same data name. To search a specific array element indicate the subscript in the following way - FIND INVALID /field(subscript).

    You can use the File-AID-assigned field number in conjunction with several primary commands to selectively display your data. You can use the field number to:

    • Indicate the field to search when using the FIND INVALID command (Ex. FIND INVALID /field-number).
    • Use the DISPLAY command to specify a field or range of fields that you want to display in a format that is different from the default display format (Ex. DISPLAY 1 2-5 10 HEX).
    • Reposition the display to a specified field by using the field number(s) with the LOCATE primary command (Ex. LOCATE /field-number).
    • Specify which fields you want to display or hide by using the field number(s) with the DISPLAY primary command (Ex. DISPLAY 1 2 18 ONLY).
  • For Unicode data, the FIND command has these restrictions:
    • Only supports hex format.
    • The parameters VALID and INVALID are not supported.
    • In FMT mode and VFMT HEX OFF mode, the cursor does not point to the exact position of the found string.

 

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

BMC Compuware File-AID/MVS 21.01