# File View Utility

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

The **File View Utility** is used to view, but not modify, the records within a selected data file, along with other details such as the file type, record size, primary key size, current number of records and field information.

The *Search* button invokes a concurrent **[Search](https://manual.pvxplus.com/file-view-utility#Mark4)** window for defining filter criteria to search the records in a Keyed data file. The **[Customize](https://manual.pvxplus.com/file-view-utility#Mark5)** button in the **Search** window launches a window for selecting which columns to display in the Search list box.

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

To modify and update the records in a data file, use the **[File Update Utility](https://manual.pvxplus.com/file-update-utility)**.

To invoke the **File View Utility**, use one of the following methods:

| **Location** | **Method** |
| --- | --- |
| 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 *View File* toolbar button. |
| From **[Data Dictionary Maintenance](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/overview)** | Select the file using the Query button. Click the *Data* toolbar button. |

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

![](https://manual.pvxplus.com/migration-assets/fd3e8bb5d1bc4d1c593279fb72a77106fce37ca07f50e281851e7c019e46e652.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. |
| *Key* | By default, displays the Primary key for the file. Click the drop-down arrow for a list of key records, if defined. See **[Defining Keys](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/defining-keys)**.<br>*(The key definition information shown in the drop-down list was added in PxPlus 2023.)* |
| *(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.<br>*(The Query button was added in PxPlus 2021.)* |
| *Search* | ***(Available when a Keyed data file is selected)***<br>Button that invokes a concurrent **[Search](https://manual.pvxplus.com/file-view-utility#Mark4)** window for defining the filter criteria to search the records in the selected data file.<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. |
| *Primary Key Size* | Size of the primary key (in bytes). |
| *Current # of records* | Number of total records in the selected file. |
| *(Grid)* | Displays the field names, field lengths, and data values for each record in the selected file.<br>Non-printable characters in the *Value* column are displayed with the Hex value in curly braces; e.g. {1F} for the standard view or a large • (*dot*) when using the ruler display.<br>If copied, the value will contain what is displayed rather than the true value of the field. Copy options are available on the system popup menu when you right click within the grid. You can also double click a *Value* cell to select the characters you want to copy and then choose *Copy* from the right click menu.<br>*(The ability to copy the data in the grid was added in PxPlus 2026.)* |
| *View multiple fields per line* | Select this check box to present the data records in a list box format.<br>![](https://manual.pvxplus.com/migration-assets/d399b618d4d619b58032a518f1953135962bf8f856a19978ddae4aee80856d5b.png)<br>The **Ϸ** symbol is used as a field separator. Other non-printable characters in the *Key* and *Data* columns are displayed with the Hex value in curly braces; e.g. {1F}.<br>If copied, the value will contain what is displayed rather than the true value of the field. Copy options are available on the system popup menu when you right click within the grid.<br>*(The ability to copy the data in the grid was added in PxPlus 2026.)* |
| *Expanded View* | ***(Available when "View multiple fields per line" check box is selected)***<br>Button that is used to view additional details for a selected data record in the list.<br>\|  \|  \|<br>\| --- \| --- \|<br>\| ![](https://manual.pvxplus.com/migration-assets/efb077fe66859039f2d645bc073712d276a3d666a910a08e67efd7837578af9e.png) \| ![](https://manual.pvxplus.com/migration-assets/faea168377ebab4e69141e1c8634ae78b3c935c1884bf3396fdda5a94af8930b.jpg) \| |
| *Use ruler* | ***(Available when "View multiple fields per line" check box is not selected)***<br>Select this check box to present the data in the grid with a fixed font and display a ruler in the top line of the *Value* column to indicate character positioning within the field value.<br>![](https://manual.pvxplus.com/migration-assets/da7347b0aeebcd6e1967832a48c6721b283bf4bf29d1bfe2b5e95ca3005088d4.png)<br>*(The "Use ruler" check box was added in PxPlus 2026.)* |
| *Close* | Exits the **File View Utility**. |

## Search

The *Search* button on the main panel invokes a concurrent **Search** window for defining filter criteria to search the records in the selected data file. Filter conditions can be entered as a free-form value, an expression or a regular expression.

A *Case-Sensitive* option is also available. The **[Customize](https://manual.pvxplus.com/file-view-utility#Mark5)** button launches a window for selecting which columns to display in the Search list box.

Records matching the search criteria, if found, are displayed in the list box.

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

This window consists of the following:

|  |  |
| --- | --- |
| **File** | ***(Display Only)*** Full pathname of the selected file. |
| **Filter** | ***(Optional)*** Filter options used to define the search criteria.<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Expression* \| Select this check box to enter an expression as the filter value in the multi-line input. If the expression evaluates to 1 (true), the records are loaded into the list box.<br>***Examples:***<br>*Example 1* - Find all records where the Region$ element is Ontario:<br>UCS(Region$)="ONTARIO"<br>*Example 2* - Find all records that do not have a phone number entered:<br>Phonenumber$=""<br>Note:  <br>When the Expression check box is selected, the Regular Expression, Case-Sensitive and Is Not check boxes are disabled. \|<br>\| *Regular Expression* \| Select this check box to enter a regular expression as the filter value in the multi-line input.<br>This value will be used as the *mask$* parameter in the **[MSK( )](https://manual.pvxplus.com/functions/msk)** function (along with the entire record string as the *string$* parameter). If the **MSK( )** function evaluates to 1 (true), the records are loaded into the list box.<br>***Examples:***<br>*Example 1* - Find all records that contain the words Lazy or Cozy anywhere within the record:<br>Lazy\\|Cozy<br>*Example 2* - Find all records that contain a **#** or **$** or **%** character:<br>**\[**#$%**\]**<br>Note:  <br>When the Regular Expression check box is selected, the Expression, Case-Sensitive and Is Not check boxes are disabled. \|<br>\| *Case-Sensitive* \| ***(Available when Expression check box is not selected)***<br>Select this check box if the filter value entered in the multi-line input is case-sensitive. (By default, this check box is not selected.) \|<br>\| *Is Not* \| ***(Available when Expression check box is not selected)***<br>Select this check box if you want the search to exclude records in which the filter value was found. (By default, this check box is not selected.) \|<br>\| *(Multi-line input)* \| Used for entering a free-form filter value.<br>If either the *Expression* or *Regular Expression* check box is selected, enter an expression. If the filter value is case-sensitive, select the *Case-Sensitive* check box. \| |
| *Search* | Launches the search process for the specified criteria.<br>If matches are found, the list box will be populated with records matching the search criteria. If no matches are found, the list box will be blank and a message will display. |
| *Customize* | Launches the **Customize Search** window for selecting (or deselecting) the columns to display in the Search list box based on any variables in the file IOList, if defined in the Data Dictionary.<br>If the file IOList is not defined in the Data Dictionary, the *Customize* button will be disabled.<br>*(The Customize button was added in PxPlus 2024.)*<br>![](https://manual.pvxplus.com/migration-assets/26c7ebbdd4d632a87d0e56fba4bf6c1dc3bbeabae9834e8e07f115d82325725e.jpg)<br>This window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Select/Deselect All* \| Check box that is used to either select or deselect all the check boxes (in the *Select* column) beside the listed variables. \|<br>\| *(Variables Grid)* \| Lists all the variables in the file IOList, if defined in the Data Dictionary. The variables that display in the Search list box by default will show the *Select* check box as checked.<br>To select (or deselect) variables, click the *Select* check box beside individual variables or use the *Select/Deselect All* check box. \|<br>\| *OK* \| Exits the **Customize Search** window and updates the columns in the Searc**h** list box based on the selected variables.<br>If no variables were selected, the Search list box will display four columns for the *Key* and the first three fields of the file definition. \|<br>\| *Exit* \| Exits the **Customize Search** window without updating the Search list box. \| |
| *(List Box)* | Displays a list of records matching the search criteria, if found. Although only four columns are displayed, all fields in the record are searched.<br>The four column headings consist of a *Key* (based on the selected **[Key](https://manual.pvxplus.com/file-view-utility#Mark2)**) and the first three fields of the selected file definition.<br>Click the **[Customize](https://manual.pvxplus.com/file-view-utility#Mark5)** button to select (or deselect) the columns to be displayed in the Search list box.<br>To sort the list box columns in ascending/descending order, click on the column headings. |
| *(Right Click Menu)* | Right click on a record in the Search list box to display a popup menu with the *List Options* selection, which invokes the **[List Box and Grid System Popup Menu](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/popup-menu/list-box-and-grid-system-popup-menu)**.<br>*(The Search list box right click popup menu was added in PxPlus 2024.)* |
| *Select* | Displays the details of the selected record in the main panel list box while keeping the **Search** window open. Double clicking on a record also selects it.<br>\|  \|  \|<br>\| --- \| --- \|<br>\| ![](https://manual.pvxplus.com/migration-assets/005339d1ca9cac93ef84f791dd491fccf484e53139bae33189465b95e78d017b.jpg) \| ![](https://manual.pvxplus.com/migration-assets/0f3565a9c6cdde2668ec69bcb4c6dde51beff5fc7780ac32326ba0a0173e4d8f.jpg) \|<br>\|  \|  \|<br>\| --- \| --- \|<br>\|  \|  \|<br>Note:  <br>When using the Search list to select a record with an alternate non-unique key, the first record with that non-unique key will display on the main panel, regardless of which record was selected. |
| *Exit* | Closes the **Search** window. |

## See Also

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