The Call command is used to allow one UserCalc to act as control for one or more UserCalcs.
A single Calculation UserCalc can CALL other Calculation, Function or Qualifier UserCalcs. If there are more than one Usercalc being called, each is processed in turn after which the control switches back to the main calling UserCalc.
Use a qualifying section to choose the employee once, and then call other UserCalcs to be executed for that employee to save processing time.
The Call command does not have a False path, after returning from the called UserCalc, the 'If Goto' line will be processed next.
If the Call UserCalc is to return a Boolean value of True or False, the variable used to store the result needs to be a Global Variable ($G) in order to be accessible by the calling UserCalc.
The 'If Goto' line executed should then test for the result by using the Global Variable.
Line | CMD | OT | Operand 1 | OPER | OT | Operand2 | OT | Operand3 | If Goto | Else GoTo |
---|---|---|---|---|---|---|---|---|---|---|
00010 | CALL | UF | FULL-TIME GROUP | 00100 | ||||||
00100 | IF | $G | FULL-TIME | EQ | B | TRUE | 00110 | 00200 | ||
00110 | CALL | UC | FULL-TIME SENIORITY | 99999 | ||||||
00200 | CALL | UC | 4 PERC VAC PAY | 99999 | ||||||
99999 | EXIT | 99999 |
Screen captures are meant to be indicative of the concept being presented and may not reflect the current screen design.
If you have any comments or questions please email the Wiki Editor
All content © High Line Corporation