You are here: File Descriptions > Payroll > PABTxxx - Batch Control File

# PABTxxx - Batch Control File

The Batch Control file is used to keep track of the batches in use by each terminal. This file is checked each time you enter or edit a transaction to ensure that no one else is printing or posting in the batch.

| Template: | DIM PABT:"BATCH:C(6*), FLAG:C(4*), DESCR:C(25*), TTSTAT:C(1*), MDSTAT:C(1*), RSV1:C(1*), RSV2:C(1*), BSTAT:C(1*), RSV3:N(1*), PERS:N(1*), RSV4:N(1*)"
| IOLIST: | 0999 PABTXXX: IOLIST BC0$, BC1$, BC2$, BC3$[ALL], BC4$, BC1, BC2, BC3
| Array Sizes: | DIM BC3$[3]
| String Sizes: | DIM BC0$(6), BC1$(4), BC2$(25), BC4$(1)

Key Definitions

| Key Number | Field | Description
| 0 | [1:1:6] | Batch ID
| 1 | [2:1:4] + | Lock Flag +
|  | [1:1:6] | Batch ID
|  | __________ |
|  | 3 segments |

Batch Control File

| File Name: | PABTxxx | Record Size: | 54(128)
| File Type: | Mkeyed - Dynamic | Number of Keys: | 2

| Field | Field Name | Variable | Description | A/N | Length | Note
| 1 | BATCH | BC0$ | Batch ID | A | 6 |
| 2 | FLAG | BC1$ | Lock Flag | A | 4 | Term ID or blank
| 3 | DESCR | BC2$ | Description | A | 25 |
| 4 | TTSTAT | BC3$[0] | Status - Time Ticket Journal | A | 1 | U = Unprinted
|  |  |  |  |  |  | P = Printed
|  |  |  |  |  |  | R = Reprint
|  |  |  |  |  |  | N = Not Appl.
| 5 | MDSTAT | BC3$[1] | Status - Misc. Deductions Journal | A | 1 | U = Unprinted
|  |  |  |  |  |  | P = Printed
|  |  |  |  |  |  | R = Reprint
|  |  |  |  |  |  | N = Not Appl.
| 6 | RSV1 | BC3$[2] | Reserved for OSD | A | 1 |
| 7 | RSV2 | BC3$[3] | Reserved for OSD | A | 1 |
| 8 | BSTAT | BC4$ | Batch Status | A | 1 | H = Hold
| 9 | RSV3 | BC1 | Reserved for OSD | N | 1 |
| 10 | PERS | BC2 | Persistence Flag | N | 1 | 0 = Non-Permanent
|  |  |  |  |  |  | 1 = Permanent
| 11 | RSV4 | BC3 | Reserved for OSD | N | 1 |