Operations VARST, HRS and ADDDB Illustrated By Means of a Sample Personnel Calculation Rule

An employee works each day for an hour longer than is stipulated in his or her collective agreement. The employee is assigned one hour’s time credit for each paid workday. The time credit determined is posted to the time type Compensation Time .

Explanation

1

D

VARSTFREE

Decision operation: Does the daily work schedule for this day and employee have zero planned working hours?

2

N

D

VARSTPRSNT

The daily work schedule has more than zero planned working hours. An N (No) is entered in the variable key. Decision operation: Is the employee at work?

3

N N

The daily work schedule has more than zero planned working hours. The employee is not at work. He or she does not receive a time credit.

4

N Y

D

VARSTDAYTY

The daily work schedule has more than zero planned working hours. The employee is at work. A Y (Yes) is entered in the variable key. Decision operation: Which day type is assigned to the day being evaluated?

5

N Y

HRS=1.00

ADDDB2000

Operation HRS retrieves an hour. The hour is added to time type 2000 using operation ADDDB.

The daily work schedule has more than zero planned working hours. The employee is at work. The day type is either 0, BLANK, (work/paid) or 3 (off/special day).

Operation HRS retrieves an hour. The hour is added to time type 2000 using operation ADDDB.

6

N Y 1

N Y 2

The daily work schedule has more than zero planned working hours. The employee is at work. The day being evaluated has day type 1 (off/paid) or day type 2 (off/unpaid). Since the employee does not have to work on these days, he or she is not assigned a time credit. Processing is not carried out.

7

Y

The daily work schedule has zero planned working hours. The employee does not have to work. He or she does not receive a time credit.

All queried answers must be listed for an operation. Errors can occur if the decision tree is not complete.

You can also give generic answers to a decision tree using an asterisk (*). Please note that the number of asterisks must correspond to the anticipated length of the variable key.

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.