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.

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
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 marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
PRGSET1COMPANY, GROUP-NAMEPrimaryAC62.1, BN06.1, BN08.1, BN100, BN101, BN102, BN103, BN145 +22 more (list truncated in source)
PRGSET2COMPANY, GRP-ORDER, GROUP-NAMEKeyChange, SubsetWhere UPDATE-FLAG = "Y"HR155
PRGSET3COMPANY, GRP-ORDER, GROUP-NAMEKeyChangeHR155, HR156, ZH156

Relations

One to one (2) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequiredPRG-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
Field NbrPADICTRequiredWhen PRG-FLD-NBR != ZeroesPRG-FLD-NBRPAD-FLD-NBR

One to many (7) — child tables

RelationTableRulesConditionField map
Employee NbrPGSELECTPRG-COMPANYPGS-COMPANY, PRG-GROUP-NAMEPGS-GROUP-NAME, PGS-EMPLOYEE, PGS-SEQ-NBR
EmployeesPGEMPLOYEEDelete CascadesPRG-COMPANYPGE-COMPANY, PRG-GROUP-NAMEPGE-GROUP-NAME, PGE-EMPLOYEE
PgselectPGSELECTDelete CascadesPRG-COMPANYPGS-COMPANY, PRG-GROUP-NAMEPGS-GROUP-NAME, PGS-EMPLOYEE, PGS-SEQ-NBR
ProgpayPROGPAYPRG-COMPANYPGP-COMPANY, PRG-GROUP-NAMEPGP-GROUP-NAME, SpacesPGP-REC-TYPE, PGP-TABLE, PGP-EFFECT-DATE, PGP-END-DATE
Progpay BonusPROGPAYPRG-COMPANYPGP-COMPANY, PRG-GROUP-NAMEPGP-GROUP-NAME, "B"PGP-REC-TYPE, PGP-TABLE, PGP-EFFECT-DATE, PGP-END-DATE
SelectionPGSELECTDelete CascadesPRG-COMPANYPGS-COMPANY, PRG-GROUP-NAMEPGS-GROUP-NAME, PGS-ITEM-GRP, PGS-FLD-NBR, PGS-SEQ-NBR
StandtimeSTANDTIMERequiredPRG-COMPANYSTM-COMPANY, ZeroesSTM-EMPLOYEE, PRG-GROUP-NAMESTM-TIME-GROUP, STM-PAY-CODE, STM-SEQ-NBR

Programs

Updated by (70)

Referenced by (280)