Start of Process
The Start of Process event point (also referred to as the Subroutine event point in a subroutine process or Status event point in a status process) executes once for a process, each time the process invokes. This means that, for a child process, the Start of Process event point for the child executes once for every record in the parent process. For example, in an order entry application in which an order input process invokes a child line item input process, the Start of Process event point in the line item process executes once for each order.
Start of Process executes before APPX determines the mode. As a result, you can include statements to modify the mode default by setting the value in the predefined field DEFAULT MODE.
All processes include the Start of Process event point. For a query process, Start of Process executes as a part of query setup (not query execution).
Start of Process is often used to:
· Read information from related files (a parameters or descriptions file, for example) to make the information available for the rest of a process.
· Verify the existence of required applications and files, and inform the user and cancel the execution if required data or files are not available. For example, if an accounts payable invoice post process updates balances in the general ledger application, this event point would check for required general ledger files.
· Perform actions that would be redundant if performed anywhere else.