Each line of a UserCalc has a number, and the UserCalc follows the instructions in line number order. You should increment line numbers in 10's, this will allow enough room if you later have to add an additional piece of logic.

When you start a new section of logic, then increment to the next 100.

When a qualification is passed, then increment to the next 100.

Line 99999 is automatically defined as the 'Exit' line in a Calculation UserCalc and as the 'Return' line in a Qualification or Function UserCalc. Each time you want the logic to exit, explicitly go to line 99999, rather than writing the EXIT command on the next line. The system will do one line less processing this way.

Always start your UserCalc with a qualifying section, and eliminate conditions in order of most volume first.

Use the CALL command to perform multiple operations on the same group of employees who have passed a qualification, rather than re-qualifying the same employee repeatedly in each UserCalc. It is not necessary to adopt this convention until the majority of the required UserCalcs are written.


Notes #

Click to create a new notes page