You are here: File Descriptions > Payroll > PACTxxx - PA Control File

# PACTxxx - PA Control File

The Control file is used to keep track of the transaction in use by each terminal. This file is checked each time you enter or edit a transaction to ensure that no one else is modifying the transaction. When you finish with a transaction, the record is deleted.

| Template: | DIM PACT:"USRID:C(12*), SRTSQ:C(3*), OTYPE:C(1), TRANS:C(8*), BATCH:C(6*)"
| IOLIST: | 0999 PACTXXX: IOLIST CTKEY$, CTSEQ$, CTORD$, CTBAT$
| String Sizes: | DIM CTKEY$(12), CTSEQ$(3), CTORD$(9), CTBAT$(6)

Key Definitions

| Key Number | Field | Description
| 0 | [1:1:12] + | User ID +
|  | [2:1:3] | Sort Sequence Number
| 1 | [3:1:1] + | Order Type +
|  | [3:2:8] + | Transaction Number +
|  | [1:1:12] + | User ID +
|  | [2:1:3] | Sort Sequence Number
| 2 | [4:1:6] + | Batch ID +
|  | [1:1:12] + | User ID +
|  | [2:1:3] | Sort Sequence Number
|  | __________ |
|  | 9 segments |

PA Control File

| File Name: | PACTxxx | Record Size: | 34(64)
| File Type: | Mkeyed - Dynamic | Number of Keys: | 3

| Field | Field Name | Variable | Description | A/N | Length | Note
| 1 | USRID | CTKEY$ | User ID | A | 12 |
| 2 | SRTSQ | CTSEQ$ | Sort Sequence Number | A | 3 |
| 3(1,1) | OTYPE | CTORD$(1,1) | Order Type | A | 1 | T = Tran
|  |  |  |  |  |  | R = Recurring
| 3(2,8) | TRANS | CTORD$(2,8) | Transaction Number | A | 8 | "00000000"
| 4 | BATCH | CTBAT$ | Batch ID | A | 6 |