Run Control
Run Control is implemented by inserting program calls into the set up and/or job procedures of functions to be controlled. The Run Control series is created as a sub-function of the Department Update. Run Control is implemented only for specific Department selection in most cases. It is straight forward to implement the set procedure for select-All. Doing the check when selecting All can be very complicated. The programs that are used to support Run Control include:
- Open the Period (PRUNOP) - Opens the Pay Period by resetting the status on all entries in the series that are not locked in, i.e. status greater than R, to status B. It also clears all the dates except on the first entry in the series which it sets to the current date. This program has very limited usage.
- Set Status (PRUNST) - Sets the status of the designated step and notes the current date. The date is noted even if the status is locked. It is usually put at the end of the job. The parameters include:
- Action or program name
- New Status
- Set Status Manually (PRUNSM) - It is used to set the status of one or more designated steps, and note the current date. The date is noted even if the status is locked. It is used to record the completion of non-computer steps in the series.
- Check Status (PRUNCK) - Used to check Run Control before executing a controlled step. The Return Code is used to determine the course to be taken. Return Code values include:
- 00 - Passes all tests
- 33 - Already run
- 44 - At least one preceding step not run
- 88 - Not in the Run Control series
To use the automated check and set procedures the payroll function must be programmed to use it. The procedures that are programmed to use Run Control include:
- CLOSE - Close the Pay Period. May not be restarted. Ends by re-opening the series. It is implemented through procedure PP3000S; it is not a procedure itself, initially.
- OPEN - Used as the nominal first entry in the series. It is not a procedure itself, initially.
- PP1500S - Deductions in Detail. No check.
- PP1600S - Distributions. No check.
- PP1700S - Cheque Reconciliation List. No check.
- PP1800S - General Ledger Report and Release. No check.
- PR2500S - Accept Earnings from Job Cost. No check.
- PR3050S - Post Earnings. No check.