PSGRELATE – Pay Class/Pay Sum Grp Relation

System
Human Resources (HR)
Prefix
PSR
Primary key
COMPANY, PAY-CLASS, PAY-SUM-GRP
Fields
5
Updated by
44 programs
Referenced by
79 programs

PSGRELATE is the Pay Class/Pay Sum Grp Relation table in Lawson Human Resources (prefix PSR). It is indexed by COMPANY, PAY-CLASS, PAY-SUM-GRP (PSRSET1); alternate indexes: PSRSET2. It is related 1:1 to PRSYSTEM, PAYCLASS and PAYSUMGRP and 1:M to PRPAYCODE. It is updated by BN150, EXI2.1, EXI4.1, HR00.1, HR01.1, LP130, PR128, PR131 and 36 more and referenced by BN100, BN101, BN102, BN103, BN105, BN145, BN245, BN260 and 71 more. The table has 5 fields, 2 indexes and 4 documented relations.

About PSGRELATE

Contains records that define which pay summary groups are linked to a pay class. PR20.3 (Pay Summary Group Relationship) is the primary program that updates this file.

Fields (5)

Column = COBOL field name without the PSR- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored. PK = primary key (present in every index); SETn = leading/alternate key of that index.

Field / columnTypeDescription & valuesUpdated by
#PSR-COMPANY PK
COMPANY
Numeric 4Contains the company number.PR20.3, PR20.8
#PSR-PAY-CLASS PK
PAY_CLASS
Alpha 3Contains the pay class to which pay summary groups are related.PR20.3, PR20.8
#PSR-PAY-SUM-GRP PK
PAY_SUM_GRP
Alpha 3Contains the pay summary group associated with the pay class.PR20.3, PR20.8
#PSR-HOURS-FLAG
HOURS_FLAG
Alpha 1Indicates if hours associated with a specific pay summary group are included, excluded, or subtracted for calculation and reporting.
  • I Include
  • E Exclude
  • S Subtract
PR20.3, PR20.8
#PSR-WAGES-FLAG
WAGES_FLAG
Alpha 1Indicates if wages associated with a specific pay summary group are included, excluded, or subtracted for calculation and reporting.
  • I Include
  • E Exclude
  • S Subtract
PR20.3, PR20.8

Indexes (2)

Keys are listed in index order; ↓ marks a descending key. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
PSRSET1
  1. COMPANY
  2. PAY-CLASS
  3. PAY-SUM-GRP
PrimaryBN100, BN101, BN102, BN103, BN105, BN145, BN150, BN245 +22 more (list truncated in source)
PSRSET2
  1. COMPANY
  2. PAY-SUM-GRP
  3. PAY-CLASS
BN150, PR521, ZH568, EXI2.1, EXI4.1, LP130, PR128, PR131 +22 more (list truncated in source)

Relations

Relationship map — 1:1 lookups/parents on the left, 1:M children on the right (up to 14 each)
PRSYSTEMPAYCLASSPAYSUMGRPPRPAYCODEPSGRELATE

One to one (3) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequired
PSR-COMPANY→PRS-COMPANY
Spaces→PRS-PROCESS-LEVEL
Pay ClassPAYCLASSRequired
PSR-COMPANY→PCL-COMPANY
PSR-PAY-CLASS→PCL-PAY-CLASS
Pay Sum GroupPAYSUMGRPRequired
PSR-COMPANY→PSG-COMPANY
PSR-PAY-SUM-GRP→PSG-PAY-SUM-GRP

One to many (1) — child tables

RelationTableRulesConditionField map
Pay CodesPRPAYCODE
PSR-COMPANY→PCD-COMPANY
PSR-PAY-SUM-GRP→PCD-PAY-SUM-GRP
—→PCD-PAY-CODE
—→PCD-PROCESS-LEVEL
—→PCD-JOB-CODE

Programs

Updated by (44)

Referenced by (79)