# File Update Utility

> Source: https://manual.pvxplus.com/file-update-utility

The **File Update Utility** is used to view, modify and update the records within a selected data file, one record at a time. You can also view other details such as file type, record size, current number of records and field information.

The *Search* button invokes a concurrent **Search** window for defining filter criteria to search the records in a Keyed data file. The *Customize* button in the **Search** window launches a window for selecting which columns to display in the Search list box.

See **[File View Utility](https://manual.pvxplus.com/file-view-utility#Mark4)**.

*(The Search button was added in PxPlus 2023 Update 1.)  
(The Customize button was added in PxPlus 2024.)*

To invoke this utility, use one of the following methods:

| **Location** | **Method** |
| --- | --- |
| From the **[PxPlus IDE Main Launcher](https://manual.pvxplus.com/pxplus-ide/ide-main-launcher)** | Expand the *Data Management* category and select *File Update Utility*. Specify the file to update using the displayed browse window. |
| From **[System Utilities](https://manual.pvxplus.com/pxplus-user-guide/getting-started/system-utilities/graphical-utilities)** | In **System Utilities**, select the file from the list of files displayed for the current working directory or click the Directory Browse button to specify a different pathname. Click the *File Update* tool bar button. |
| From the PxPlus Command line | Enter ***fm*** and then specify the file to update using the displayed browse window. |

The **File Update Utility** displays the details for the selected file. A grid displays the field names, field lengths, and old/new data values for each record. Use the browse buttons to scroll through the records in the file.

The data for a field can be modified by entering the new value in the *New Value* column. After saving/updating the file, the *Old Value* and *New Value* columns reflect the saved changes the next time you select this file.

![](https://manual.pvxplus.com/migration-assets/4f0108ea70fde06ca3a21ca4a210589a98f1690361e7e4efe41fe34b44422b2c.jpg)

This window consists of the following:

|  |  |
| --- | --- |
| *File* | Full pathname of the selected file. Click the file Query button for a list of files in the specified directory.<br>Note:  <br>The file pathname displays either the full pathname or only the selected file name, depending on the method used to access this utility.  <br>  <br>For example, if the utility is accessed from [System Utilities](https://manual.pvxplus.com/system-utilities), the full pathname displays each time. On the other hand, if the utility is accessed from either the [PxPlus IDE Main Launcher](https://manual.pvxplus.com/pxplus-ide/ide-main-launcher) or the PxPlus Command line, only the selected file name displays initially; selecting another file from the File Query button will display the full pathname. |
| *(Key Value)* | Displays the primary key value of the current record, if available. Click the Query button for a list of records in the selected file or use the Browse buttons to locate a record. If a query is not available for the file, a message will display.<br>*(The Query button was added in PxPlus 2021.)* |
| *Search* | Button that invokes a concurrent **Search** window for defining filter criteria to search the records in the selected data file.<br>See **[File View Utility](https://manual.pvxplus.com/file-view-utility#Mark4)**.<br>*(The Search button was added in PxPlus 2023 Update 1.)* |
| *Type* | Type of data file (i.e. **[Keyed](https://manual.pvxplus.com/pxplus-user-guide/file-handling/data-files/keyed-files)**, **[Serial](https://manual.pvxplus.com/pxplus-user-guide/file-handling/data-files/serial-files)**, **[Indexed](https://manual.pvxplus.com/pxplus-user-guide/file-handling/data-files/indexed-files)**). |
| *Record Size* | Maximum size (in bytes) of the data portion of the record. |
| *Current # of records* | Number of total records in the selected file. |
| *(Grid)* | Displays the field names, field lengths, and old/new data values for each record in the selected file. |
| *New Field Number* | Adds a new field number as a new row to the bottom of the grid for the current record only.<br>Note:  <br>If the data file has an embedded data dictionary, it is strongly recommended to use [Data Dictionary Maintenance](https://manual.pvxplus.com/data-dictionary/introduction) for adding new fields. |
| *Update* | Saves/updates the selected file with any changes. A message confirms that the record has been updated.<br>If the current record is changed, attempting to close the utility or use the Browse buttons without selecting the *Update* button will display a message to save the record. |
| *Delete* | Deletes the current record for the selected file. Prior to deleting the record, a message displays. |
| *Close* | Exits the **File Update Utility**. |

## See Also

**[File View Utility](https://manual.pvxplus.com/file-view-utility)**
