The following is the scenario the sample assumes:
•     Leave balance is a pool of hours; no amounts
•     The limit is 240 hours, which cannot be exceeded at any time.
•     Part-time and Seasonal employees are not eligible for leave.
•     Leave is accrued each payroll
•     Eligible employees earn leave as follows:  Year 1 - 2 weeks; Years 2-5 - 3 weeks; Years 6-10 4 weeks; Years 11-up 5 weeks.
 
The following concepts are illustrated in this sample:
•     Data items LU and LACCRUE are Earning items that do not post to the GL (note the setup of field 4)
•     Data item LU is setup using toolbox template HOURLY.
•     Data item LPO is setup copying the regular hourly earnings to simplify the setup of the Basis For in field 4 and the Debit Option in field 6.
•     Data items LACCRUE and LBAL are added from scratch.  While in A)dd mode for each, add only the first 6 fields, the E)nd; finish the setup of fields 8 and 9 while in C)hange mode.
 
Additional information regarding this setup:
•     This setup uses multiple data items for ease of tracking what happens each pay period.  An employee's balance of leave available is very important to them and if an error occurs, this method can track it better than if only one data item tracked hours earned/used/balance.
•     Hours used (LU and LPO) and balance (LBAL) are printed on the check stub; hours accrued (LACCRUE) is not printed on the stub.
•     The balance (LBAL) is the only item that rolls forward; LU, LPO, and LACCRUE do not roll forward.
•     Note the design of LACCRUE for limit checking - the gross accrual is calculated fully; therefore, if the limit is later eliminated, the calc lines can be easily removed.  It also makes it easier for the calculation to EXIT when the employee is not over the limit.
•     This design allows the data entry operator to enter leave hours used like any other time - without any minus sign.
•     This design can be used for any leave accrual e.g. Sick, Vacation, PTO, etc.
•     This setup can also be modified for organizations that grant leave to different classes of employees (part-time FTE).

Below are the historical data item setups:
Data item .........: LU         (  401)                     
                                                            
1) Description....: Leave hours used

2) Short desc.....: Leave used

3) User options
    History type...:     E - Earnings.
    Calc cycle.....:     N - No calculation used.
    Calc order.....:     0
    Print on stub..:     Y - Print on stub.
    Detail register:     Y - Produce detail register w/chks

4) Earning options
    Entry type.....:     H - Hours entered on time cards.
    Rate from......:            - None required.
    Multiply by....:             .000000
    Use shift......:            - Not used.
    Use costcode...:     N - Do not use costcode.
    Use dist table.:     N - Do not use distribution tables
    Chg acct/basis.:     N - Change not allowed.
    Basis for......:
                   :

5) Roll options
    Roll forward...:     N - Do not roll forward.
    Amount limit...:
    Hours limit....:

6) Ledger options
    Post G/L.......:     N - No G/L posting for this item.
    Debit option...:
      Prorate on...:
                   :
      Mask.........:
    Credit option..:
      Prorate on...:
                   :
      Mask.........:

7) System
    Source.........:     U - Defined by user.
    In use.........:     N - Data item has not been used.
    Group process..:

                     8)  Line Command     Detail
                        ===== =======    ==========================================
                            2 COMNT   *******************************************************
                            4 COMNT
                            6 COMNT   DESCRIPTION:  Hourly earnings
                            8 COMNT
                           10 COMNT   USE:  Accumulates the total amount of hourly wages.
                           12 COMNT
                           14 COMNT   SETUP NOTES:  Define edit values for .H DEPT and
                           15 COMNT   .H GLA.  Add .H DEPT, .H GLA and .H AMT to employee
                           16 COMNT   records.  .H AMT contains the hourly rate of pay.
                           17 COMNT
                           18 COMNT   CALCULATION:  No calculation used.
                           20 COMNT
                           22 COMNT   *******************************************************

                     9) Tbl        Date         Entry        Minimum            Maximum        Flat amount             Rate             Xcs
                        === ========== ===== ============ ============ ============ ============ ===
Data item .........: LPO        (  402)                      
                                                             
1) Description....: Leave Pay Out

2) Short desc.....: Leave PO

3) User options
    History type...:     E - Earnings.
    Calc cycle.....:     N - No calculation used.
    Calc order.....:     0
    Print on stub..:     Y - Print on stub.
    Detail register:     Y - Produce detail register w/chks

4) Earning options
    Entry type.....:     H - Hours entered on time cards.
    Rate from......: .H AMT     - Hourly Rate
    Multiply by....:            1.000000
    Use shift......:            - Not used.
    Use costcode...:     Y - Use costcode.
    Use dist table.:     Y - Use distribution tables.
    Chg acct/basis.:     Y - Change of acct/basis allowed.
    Basis for......: .FWT,.EIC,.FUTA,.SWT CO,.E SUTA,.FICA,.E FICA,.FICAMED,
                   : .E FICAMED

5) Roll options
    Roll forward...:     N - Do not roll forward.
    Amount limit...:
    Hours limit....:

6) Ledger options
    Post G/L.......:     Y - Post this item to the G/L.
    Debit option...:     B - Both dept and GLA from emp.
      Prorate on...:
                   :
      Mask.........: AXX XX-XX XXXX
    Credit option..:
      Prorate on...:
                   :
      Mask.........:

7) System
    Source.........:     U - Defined by user.
    In use.........:     N - Data item has not been used.
    Group process..:

                     8)  Line Command Detail
                        ===== ======= ==================================================
                            1 COMNT   *******************************************************
                            2 COMNT
                            4 COMNT   DESCRIPTION:  Leave paid out at separation
                            6 COMNT
                           10 COMNT   USE:  Pay an employee for balance of Leave Hours
                           11 COMNT         accrued when the employee has separated from the
                           12 COMNT         organization
                           14 COMNT
                           20 COMNT         Add a timecard for the Leave Balance Hours plus
                           22 COMNT         any Leave accrual due for this pay period
                           24 COMNT
                           30 COMNT   SETUP NOTES:  Leave balance is obtained from LBAL;
                           31 COMNT                 Leave Accrual is obtained from LACCRUE.
                           34 COMNT                 Add LPO to the Prorate On line of
                           35 COMNT                 employer costs.
                           36 COMNT
                           40 COMNT   CALCULATION:  No calculation used
                           50 COMNT
                           60 COMNT   *******************************************************

                     9) Tbl      Date            Entry       Minimum               Maximum        Flat amount         Rate              Xcs
                        === ========== ===== ============ ============ ============ ============ ===
 
Data item .........: LACCRUE    (  403)                     
                                                             
1) Description....: Leave accrual

2) Short desc.....: Leave accrue

3) User options
    History type...:     E - Earnings.
    Calc cycle.....:     Y - Calculation always used.
    Calc order.....:   199
    Print on stub..:     N - Do not print on stub.
    Detail register:     Y - Produce detail register w/chks

4) Earning options
    Entry type.....:     H - Hours entered on time cards.
    Rate from......:            - None required.
    Multiply by....:             .000000
    Use shift......:            - Not used.
    Use costcode...:     N - Do not use costcode.
    Use dist table.:     N - Do not use distribution tables
    Chg acct/basis.:     N - Change not allowed.
    Basis for......:
                   :

5) Roll options
    Roll forward...:     N - Do not roll forward.
    Amount limit...:
    Hours limit....:

6) Ledger options
    Post G/L.......:     N - No G/L posting for this item.
    Debit option...:
      Prorate on...:
                   :
      Mask.........:
    Credit option..:
      Prorate on...:
                   :
      Mask.........:

7) System
    Source.........:     U - Defined by user.
    In use.........:     N - Data item has not been used.
    Group process..:     N - Normal processing.

                     8)  Line Command Detail
                        ===== =======   ============================================
                            1 COMNT   *******************************************************
                            2 COMNT
                            4 COMNT   DESCRIPTION:  Leave hours accrued each pay period with
                            5 COMNT                 limit checking
                            6 COMNT
                           10 COMNT   USE:  Calculate leave hours earned each pay period for
                           11 COMNT         eligible employees
                           12 COMNT
                           20 COMNT   SETUP NOTES:  Uses PAY COUNT as employee longevity with
                           21 COMNT                 the organization to accrue the proper
                           22 COMNT                 hours each pay period.  PAY COUNT must
                           23 COMNT                 roll forward H-Hours for this to work
                           24 COMNT                 properly.  Also uses LU and LPO current
                           25 COMNT                 hours and LBAL ytd hours.
                           28 COMNT
                           40 COMNT   TABLES:
                           41 COMNT       1 - Accrual hours per pay period
                           42 COMNT       2 - Leave balance limit
                           46 COMNT
                           50 COMNT   CALCULATION:
                           51 COMNT       100-130 Exit for ineligible Part Time or Seasonal
                           52 COMNT       150-170 Gross leave accrual
                           53 COMNT       180-240 Check if over limit this payroll
                           54 COMNT       250-270 Adjust gross accrual to limit
                           58 COMNT
                           70 COMNT   *******************************************************
                           80 COMNT
                          100 IF      item(.STATUS P) relop(EQ) value(K,P HOURLY)
                          110 ORIF    item(.STATUS P) relop(EQ) value(K,P SALARY)
                          120 ORIF    item(.STATUS P) relop(EQ) value(K,SEASONAL)
                          130 EXIT
                          140 FI
                          150 REGOP   reg(11) op(L) item(PAY COUNT,ytd,hours)
                          160 TABLE   reg(11) item(LACCRUE) value(  ,1)
                          170 REGOP   reg(1) op(L) reg(11)
                          180 REGOP   reg(12) op(L) item(LBAL,ytd,hours)
                          190 REGOP   reg(12) op(+) reg(11)
                          200 REGOP   reg(12) op(-) item(LU,cur,hours)
                          210 REGOP   reg(12) op(-) item(LPO,cur,hours)
                          220 TABLE   reg(13) item(LACCRUE) value(  ,2)
                          230 IF      reg(12) relop(LE) reg(13)
                          240 EXIT
                          250 FI
                          260 REGOP   reg(13) op(-) reg(12)
                          270 REGOP   reg(1) op(+) reg(13)

                     9) Tbl    Date             Entry  &n