Post PCF Read
The Post PCF Read event point executes immediately after APPX reads or rereads a record from the process control file.
APPX reads PCF records after the key entry interactive phase completes and APPX switches to the data modification, data deletion, or data inquiry interactive phase (depending upon the selected mode). It is not executed in the data addition interactive phase.
APPX rereads a record when a user reverse-navigates, using the Previous Image option from an automatic child process, back to a parent process (for example, moving from order line items back to the order header). It also rereads a record when it executes an additional frame for a process after executing an automatic child process (for example, entering order “footer” information after processing the final line item record for an order).
By implication, execution of this event point is dependent upon the existence of a PCF. If there is no PCF, or if the PCF is a “pseudo” file, this event point is not executed. It is found in input, output, and inquiry processes only.
Post PCF Read can be used to:
· Save the values of fields before modification by a user. You can then compare the saved values with any new values during Pre-PCF Update or Post PCF Update, and perform any necessary processing as a result. For example, you might save the quantity on a line item and, in Post PCF Update, compare the current quantity with the original quantity. If the quantity changes, you might execute statements to update committed inventory.