You are here: Development Standards > Upgrading OSAS > OSAS 4.5x Upgrade Procedure > Add User-Defined Fields for Master Files

# Add User-Defined Fields for Master Files

Many master files have a master user-defined field file associated with them, which allows users to set up and store additional information for each master file record. For example, customers, vendors, and employees all have user-defined field files associated with them.

To add user-defined fields to your application, follow these steps:

1. Create a file using the name of the master file with a .UF extension (for example, ARCUx.UF and APVEx.UF). Make sure the key structure follows the structure of existing user-defined files. The first field of the file is the primary key of the master file, and the second field is always a length of 15.
2. Create the necessary string template for the .UF file, and make sure to include this template in the application xx.TPL merge file.
3. Add logic to the master file's maintenance programs to call the generic GENUSRFM.PUB program.