PASCOST – Session Costs
- System
- Personnel (PA)
- Prefix
COS- Primary key
COURSE,SESSION,START-DATE,COST-TYPE,COST-CAT- Fields
- 16
- Updated by
- 2 programs
- Referenced by
- 1 program
PASCOST is the Session Costs table in Lawson Personnel (prefix COS). It is indexed by COURSE, SESSION, START-DATE, COST-TYPE, COST-CAT (COSSET1). It is related 1:1 to GLMASTER, CUCODES, PCODES and PASESSION and 1:M to PACOURSE. It is updated by TR04.1 and TR11.1 and referenced by TR210. The table has 16 fields, 1 index and 7 documented relations.
About PASCOST
Contains cost and account reference information for each session. TR11.1 (Session Costs) is the primary program that updates this file.
Fields (16)
Column = COBOL field name without the COS- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
COS-COURSE PKCOURSE | Alpha 10 | Contains the course code. | TR11.1 |
COS-SESSION PKSESSION | Numeric 5 | Contains the session number. | TR11.1 |
COS-START-DATE PKSTART_DATE | Numeric 8 (yyyymmdd) | Contains the session start date. | TR11.1 |
COS-COST-TYPE PKCOST_TYPE | Alpha 10 | Contains the cost type, which is the specific cost classification. | TR11.1 |
COS-COST-CAT PKCOST_CAT | Alpha 10 | Contains the cost category, which is the general cost classification. | TR11.1 |
COS-COSTCOST | Signed 11.2 | Contains the amount of the cost. | TR11.1 |
COS-DIST-COMPANYDIST_COMPANY | Numeric 4 | Contains the company number to which a transaction could be posted. | TR11.1 |
COS-DST-ACCT-UNITDST_ACCT_UNIT | Alpha 15 | Contains the general ledger accounting unit to which the amount could be posted. | TR11.1 |
COS-DST-ACCOUNTDST_ACCOUNT | Numeric 6 | Contains the general ledger account to which the amount could be posted. | TR11.1 |
COS-DST-SUB-ACCTDST_SUB_ACCT | Numeric 4 | Contains the general ledger subaccount to which the amount could be posted. | TR11.1 |
COS-COST-DESIGNATRCOST_DESIGNATR | Alpha 1 | Indicates whether the cost is actual or budget.
| TR11.1 |
COS-CURRENCY-CODECURRENCY_CODE | Alpha 5 | Contains the currency in which session costs are recorded. | TR11.1 |
COS-CURR-NDCURR_ND | Numeric 1 | The number of decimals assigned to a particular account as determined by the account currency. | TR11.1 |
COS-BASE-CURRENCYBASE_CURRENCY | Alpha 5 | Contains the base currency for the training system. | TR11.1 |
COS-BASE-NDBASE_ND | Numeric 1 | The number of decimal positions defined for the training system base currency. | TR11.1 |
COS-BASE-AMOUNTBASE_AMOUNT | Signed 15.2 | Contains the session costs in the training system's base currency. | TR11.1 |
Indexes (1)
Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
COSSET1 | COURSE, SESSION, START-DATE, COST-TYPE, COST-CAT | Primary | TR04.1, TR11.1, TR210 |
Relations
One to one (6) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Accounts | GLMASTER | Required | When (COS-DIST-COMPANY != Zeroes) And (COS-DST-ACCT-UNIT != Spaces) And (COS-DST-ACCOUNT != Zeroes) | COS-DIST-COMPANY → GLM-COMPANY, COS-DST-ACCT-UNIT → GLM-ACCT-UNIT, COS-DST-ACCOUNT → GLM-ACCOUNT, COS-DST-SUB-ACCT → GLM-SUB-ACCOUNT |
| Base Currency | CUCODES | Required | When COS-CURRENCY-CODE != Spaces | COS-BASE-CURRENCY → CUC-CURRENCY-CODE |
| Category | PCODES | Required | When COS-COST-CAT != Spaces | "MC" → PCO-TYPE, COS-COST-CAT → PCO-CODE |
| Currency | CUCODES | Required | When COS-CURRENCY-CODE != Spaces | COS-CURRENCY-CODE → CUC-CURRENCY-CODE |
| Session | PASESSION | Required | COS-COURSE → SES-COURSE, COS-SESSION → SES-SESSION, COS-START-DATE → SES-START-DATE | |
| Type | PCODES | Required | When COS-COST-TYPE != Spaces | "MT" → PCO-TYPE, COS-COST-TYPE → PCO-CODE |
One to many (1) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Course | PACOURSE | Required | COS-COURSE → CRS-COURSE, → CRS-EFFECTIVE-DATE |
Programs
Updated by (2)
Referenced by (1)
- TR210 Course Cost Listing