PERSGROUP – Employee Group Header

System
Human Resources (HR)
Prefix
PRG
Primary key
COMPANY, GROUP-NAME
Fields
12
Updated by
70 programs
Referenced by
280 programs

PERSGROUP is the Employee Group Header table in Lawson Human Resources (prefix PRG). It is indexed by COMPANY, GROUP-NAME (PRGSET1); alternate indexes: PRGSET2 and PRGSET3. It is related 1:1 to PRSYSTEM and PADICT and 1:M to PGSELECT, PGEMPLOYEE, PROGPAY and STANDTIME. It is updated by BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR06.1 and 62 more and referenced by AC62.1, BN06.1, BN08.1, BN100, BN101, BN102, BN103, BN145 and 272 more. The table has 12 fields, 3 indexes and 9 documented relations.

About PERSGROUP

Contains the definition of a user-defined employee group.

Fields (12)

Column = COBOL field name without the PRG- 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
#PRG-COMPANY PK
COMPANY
Numeric 4Contains the number that represents an established company and is entered on all functions.HR55.1, HR55.2
#PRG-GROUP-NAME PK
GROUP_NAME
Alpha 10Contains the employee group name.HR55.1, HR55.2
#PRG-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)Contains the group description.BN16.2, BN17.2, BN17.3, BN18.1, BN18.2, BN18.3, BN18.4, BN18.5 +6 more
#PRG-FLD-NBR
FLD_NBR
Numeric 4 Occurs 9 Times ×9Contains the HR data dictionary field number of the item selected as criteria for the employee group.HR55.1
#PRG-LAST-ITEM-SEQ
LAST_ITEM_SEQ
Numeric 4Contains the sequence number used to store the last employee group selection record.HR55.2, HR55.3
#PRG-UPDATE-FLAG
UPDATE_FLAG
Alpha 1Determines whether the employee group is current or needs to be updated.BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR06.1 +52 more (list truncated in source)
#PRG-GRP-ORDER SET2 SET3
GRP_ORDER
Numeric 1Indicates whether the group is used as a criteria for another group. 0 1HR55.3
#PRG-BENEFITS
BENEFITS
Alpha 1Indicates whether the employee group can be used by benefits for plan definition.
  • Y Yes
  • N No
HR55.1, HR55.2, HR55.3
#PRG-ABSENCE-MGMT
ABSENCE_MGMT
Alpha 1—
  • N No
  • Y Yes
HR55.1, HR55.2, HR55.3
#PRG-PEP-LEVEL-ONE
PEP_LEVEL_ONE
Alpha 1This field was added in the 8.1.0 release, but is not currently being used for any processing
  • N No
  • Y Yes
—
#PRG-PEP-LEVEL-TWO
PEP_LEVEL_TWO
Alpha 1This field was added in the 8.1.0 release, but is not currently being used in any processing.
  • N No
  • Y Yes
—
#PRG-ACTIVE-FLAG
ACTIVE_FLAG
Numeric 1—
  • 1 Active
  • 2 Inactive
HR55.1

Indexes (3)

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
PRGSET1
  1. COMPANY
  2. GROUP-NAME
PrimaryAC62.1, BN06.1, BN08.1, BN100, BN101, BN102, BN103, BN145 +22 more (list truncated in source)
PRGSET2
  1. COMPANY
  2. GRP-ORDER
  3. GROUP-NAME
KeyChange, SubsetWhere UPDATE-FLAG = "Y"HR155
PRGSET3
  1. COMPANY
  2. GRP-ORDER
  3. GROUP-NAME
KeyChangeHR155, HR156, ZH156

Relations

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

One to one (2) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequired
PRG-COMPANY→PRS-COMPANY
Spaces→PRS-PROCESS-LEVEL
Field NbrPADICTRequiredWhen PRG-FLD-NBR != Zeroes
PRG-FLD-NBR→PAD-FLD-NBR

One to many (7) — child tables

RelationTableRulesConditionField map
Employee NbrPGSELECT
PRG-COMPANY→PGS-COMPANY
PRG-GROUP-NAME→PGS-GROUP-NAME
—→PGS-EMPLOYEE
—→PGS-SEQ-NBR
EmployeesPGEMPLOYEEDelete Cascades
PRG-COMPANY→PGE-COMPANY
PRG-GROUP-NAME→PGE-GROUP-NAME
—→PGE-EMPLOYEE
PgselectPGSELECTDelete Cascades
PRG-COMPANY→PGS-COMPANY
PRG-GROUP-NAME→PGS-GROUP-NAME
—→PGS-EMPLOYEE
—→PGS-SEQ-NBR
ProgpayPROGPAY
PRG-COMPANY→PGP-COMPANY
PRG-GROUP-NAME→PGP-GROUP-NAME
Spaces→PGP-REC-TYPE
—→PGP-TABLE
—→PGP-EFFECT-DATE
—→PGP-END-DATE
Progpay BonusPROGPAY
PRG-COMPANY→PGP-COMPANY
PRG-GROUP-NAME→PGP-GROUP-NAME
"B"→PGP-REC-TYPE
—→PGP-TABLE
—→PGP-EFFECT-DATE
—→PGP-END-DATE
SelectionPGSELECTDelete Cascades
PRG-COMPANY→PGS-COMPANY
PRG-GROUP-NAME→PGS-GROUP-NAME
—→PGS-ITEM-GRP
—→PGS-FLD-NBR
—→PGS-SEQ-NBR
StandtimeSTANDTIMERequired
PRG-COMPANY→STM-COMPANY
Zeroes→STM-EMPLOYEE
PRG-GROUP-NAME→STM-TIME-GROUP
—→STM-PAY-CODE
—→STM-SEQ-NBR

Programs

Updated by (70)

Referenced by (280)