You are here: File Descriptions > Payroll > PAHVxxx - PA Leave History File

# PAHVxxx - PA Leave History File

The Leave History file stores the detail of leave adjustments, hours taken, and hours accrued for the period. This file also stores the beginning balances for each employee for both vacation and sick leave. When the Roll Up Leave Balances function is performed, all entries are purged, and the new beginning balances are stored in this file.

| Template: | DIM PAHV:"SEQ:C(6*), EMPL:C(6), DEPT:C(6*), SICVAC:C(1), PRNTD:C(1), SRC:C(2), EARN:C(3), RSV1:C(3*), DESCR:C(25*), CHKNO:C(7*), ADJDAT:N(7*), ADJAMT:N(9*), RSV2:N(1*), RSV3:N(1*), ISVA:C(1*), ISVN[2]:N(1*)"
| IOLIST: | 0999 PAHVXXX: IOLIST HV0$, HV1$, HV2$, HV3$, HV4$, HV0[ALL], HV99$[ALL], HV99[ALL]
| Array Sizes: | DIM HV0[3], HV99[1]
| String Sizes: | DIM HV0$(6), HV1$(12), HV2$(10), HV3$(25), HV4$(7)

Key Definitions

| Key Number | Field | Description
| 0 | [1:1:6] | Sequence Number
| 1 | [2:1:6] + | Employee ID +
|  | [6:1:7] | Adjusted Date
| 2 | [2:7:6] + | Department ID +
|  | [2:1:6] + | Employee ID +
|  | [6:1:7] | Adjusted Date
| 3 | [3:2:1] + | Printed Flag +
|  | [1:1:6] | Sequence Number
| 4 | [3:1:1] + | Sick/Vacation Flag +
|  | [2:1:6] + | Employee ID +
|  | [1:1:6] | Sequence Number
| 5 | [3:3:2] + | Source of Entry +
|  | [2:1:6] + | Employee ID +
|  | [6:1:7] | Adjusted Date
| 6 | [6:1:7] + | Adjusted Date +
|  | [2:1:6] | Employee ID
|  | __________ |
|  | 16 segments |

PA Leave History File

| File Name: | PAHVxxx | Record Size: | 93(128)
| File Type: | Mkeyed - Dynamic | Number of Keys: | 7

| Field | Field Name | Variable | Description | A/N | Length | Note
| 1 | SEQ | HV0$ | Sequence Number | A | 6 | "000000"
| 2(1,6) | EMPL | HV1$(1,6) | Employee ID | A | 6 |
| 2(7,6) | DEPT | HV1$(7,6) | Department ID | A | 6 |
| 3(1,1) | SICVAC | HV2$(1,1) | Sick/Vacation Flag | A | 1 | S = Sick
|  |  |  |  |  |  | V = Vacation
| 3(2,1) | PRNTD | HV2$(2,1) | Printed Flag | A | 1 | Y or N
| 3(3,2) | SRC | HV2$(3,2) | Source of Entry | A | 2 |
| 3(5,3) | EARN | HV2$(5,3) | Earning Code | A | 3 |
| 3(8,3) | RSV1 | HV2$(8,3) | Reserved for OSD | A | 3 |
| 4 | DESCR | HV3$ | Description | A | 25 |
| 5 | CHKNO | HV4$ | Check Number | A | 7 |
| 6 | ADJDAT | HV0[0] | Adjusted Date | N | 7 | Julian
| 7 | ADJAMT | HV0[1] | Adjustment Amount | N | 9 | HOUR
| 8 | RSV2 | HV0[2] | Reserved for OSD | N | 1 |
| 9 | RSV3 | HV0[3] | Reserved for OSD | N | 1 |
| 10 | ISVA | HV99$[0] | Reserved for ISV | A | 1 |
| 11 | ISVN[1] | HV99[0] | Reserved for ISV 1 | N | 1 |
| 12 | ISVN[2] | HV99[1] | Reserved for ISV 2 | N | 1 |