You are here: File Descriptions > General Ledger > GLMSK - Account Mask File

# GLMSK - Account Mask File

The Account Mask file contains a mask defining the account structure for each company in the system. The account structure defines the positions used for the main account number, the division, the department, and the subaccount.

| Template: | DIM GLMSK:"CID:C(3*), AMSK:C(12*), MABEG:N(2*), MALEN:N(2*), DIVB:N(2*), DIVL:N(2*), DEPB:N(2*), DEPL:N(2*), SABG:N(2*), SUBLEN:N(2*), FILL:C(1*), UDAS1:C(4*), UDAS2:C(4*), ISVA:C(1*), ISVN[2]:N(1*)"
| IOLIST: | 0999 GLMSK: IOLIST A0$, A1$, A1[ALL], A2$, A3$, A4$, A99$[ALL], A99[ALL]
| Array Sizes: | DIM A1[7], A99$[0], A99[1]
| String Sizes: | DIM A0$(3), A1$(12), A2$(1), A3$(4), A4$(4)

Key Definitions

| Key Number | Field | Description
| 0 | [1:1:3] | Company ID
|  | __________ |
|  | 1 segments |

Account Mask File

| File Name: | GLMSK | Record Size: | 59(64)
| File Type: | Mkeyed - Dynamic | Number of Keys: | 1

| Field | Field Name | Variable | Description | A/N | Length | Note
| 1 | CID | A0$ | Company ID | A | 3 |
| 2 | AMSK | A1$ | Account Mask | A | 12 |
| 3 | MABEG | A1[0] | Main Account Begin | N | 2 |
| 4 | MALEN | A1[1] | Main Account Length | N | 2 |
| 5 | DIVB | A1[2] | Division Begin | N | 2 |
| 6 | DIVL | A1[3] | Division Length | N | 2 |
| 7 | DEPB | A1[4] | Department Begin | N | 2 |
| 8 | DEPL | A1[5] | Department Length | N | 2 |
| 9 | SABG | A1[6] | Subaccount Begin | N | 2 |
| 10 | SUBLEN | A1[7] | Subaccount Length | N | 2 |
| 11 | FILL | A2$ | Fill Character | A | 1 |
| 12 | UDAS1 | A3$ | User-Defined Acct Sort 1 | A | 4 |
| 13 | UDAS2 | A4$ | User-Defined Acct Sort 2 | A | 4 |
| 14 | ISVA | A99$[0] | Reserved for ISV | A | 1 |
| 15 | ISVN[1] | A99[0] | Reserved for ISV 1 | N | 1 |
| 16 | ISVN[2] | A99[1] | Reserved for ISV 2 | N | 1 |