4.7.4 Steps to Create a PJF
Following is a brief summary of the steps to create a PJF:
1. Create file access routes. The file access routes should have already been defined as part of the file definition steps. If they have not yet been set up, you will be required to do so before beginning.
2. Add field for PJF to the repository. Like other virtual fields, the field used for the PJF must be created in the repository.
3. Set up access route characteristics. The access routes contain two characteristics specific to the PJF, "Keep Last" and "PJF before/after Virtual field derivation". These two values must be set.
4. Define PJF characteristics. Using the access routes, the fields are linked in the two files and the type of operations performed are specified.
5. Make file operational. Once the PJF has been added, the file must be made operational.
It is important not to confuse PJFs with virtual fields. PJFs will appear on the list of fields in the file but they are maintained via the file access routes.