PATRNHIST – Training History

System
Personnel (PA)
Prefix
TRH
Primary key
COMPANY, EMPLOYEE, COURSE, DATE-COMPLETED
Fields
8
Updated by
5 programs
Referenced by
10 programs

PATRNHIST is the Training History table in Lawson Personnel (prefix TRH). It is indexed by COMPANY, EMPLOYEE, COURSE, DATE-COMPLETED (TRHSET1); alternate indexes: TRHSET2, TRHSET3, TRHSET4 and TRHSET5. It is related 1:1 to PRSYSTEM, EMPLOYEE, PAEMPLOYEE, PCODES and PASESSION and 1:M to EMPCODES, PAEMPCOSTS, PACOURSE and PATRACKDTL. It is updated by HR11.1, PA115, TR21.1, TR22.1 and TR500 and referenced by TR04.1, TR120, TR121, TR20.1, TR20.2, TR20.3, TR20.4, TR201 and 2 more. The table has 8 fields, 5 indexes and 9 documented relations.

About PATRNHIST

Contains the dates, CEUs, status, and attributes of the courses each employee completes. This information is updated by the Registration Information file after one of the following status is selected in TR22.1 (Session Completion): - Fully Complete - Complte-No Skills - Part Complte-No Skl - Part Complte-Skills TR21.1 (Employee Training History) is the primary program that accesses this file.

Fields (8)

Column = COBOL field name without the TRH- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
TRH-COMPANY PK
COMPANY
Numeric 4Contains the company number.TR21.1, TR22.1, TR500
TRH-EMPLOYEE PK
EMPLOYEE
Numeric 9Contains the employee number.TR21.1, TR22.1, TR500
TRH-COURSE PK
COURSE
Alpha 10Contains the course code.TR21.1, TR22.1, TR500
TRH-DATE-COMPLETED PK
DATE_COMPLETED
Numeric 8 (yyyymmdd)Contains the date the employee completed the course.TR21.1, TR22.1, TR500
TRH-COMPLETE-STATS
COMPLETE_STATS
Alpha 1Contains the completion status.
  • F Complete With Competencies
  • N Complete With No Competencies
  • S Partial With Competencies
  • P Partial With No Competencies
TR21.1, TR22.1, TR500
TRH-CEU-AWARDED
CEU_AWARDED
Signed 5.2Contains the number of CEUs awarded when the employee completes the course.TR21.1, TR22.1, TR500
TRH-RATING
RATING
Alpha 10Contains the proficiency level achieved from the course.TR21.1, TR22.1, TR500
TRH-OBJ-ID
OBJ_ID
Numeric 12This is the object identifier. It is used to relate commitments or posted transactions back to the originating subsystems. Each subsystem record that is updated as a commitment or posted transaction is assigned an object identifier. The object identifier is maintained in the subsystem files and in the Activity Commitments Detail and Activity Transaction files. The object identifier is a unique key used to drill back from Activity Management to the subsystems.TR21.1, TR22.1

Indexes (5)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
TRHSET1COMPANY, EMPLOYEE, COURSE, DATE-COMPLETEDPrimaryHR11.1, PA115, TR120, TR121, TR20.1, TR20.2, TR20.3, TR20.4 +5 more
TRHSET2COURSE, COMPANY, EMPLOYEE, DATE-COMPLETEDTR201
TRHSET3OBJ-ID, COMPANY, EMPLOYEESubsetWhere OBJ-ID != ZeroesTR04.1, TR26.1
TRHSET4COMPANY, EMPLOYEE, DATE-COMPLETED*, COURSE
TRHSET5COMPANY, EMPLOYEE, COURSE, DATE-COMPLETED*

Relations

One to one (5) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequiredTRH-COMPANYPRS-COMPANY (PRSSET1), SpacesPRS-PROCESS-LEVEL
EmployeeEMPLOYEERequiredTRH-COMPANYEMP-COMPANY, TRH-EMPLOYEEEMP-EMPLOYEE
PaemployeePAEMPLOYEERequiredTRH-COMPANYPEM-COMPANY, TRH-EMPLOYEEPEM-EMPLOYEE
RatingPCODESRequiredWhen (TRH-RATING != Spaces)"PF"PCO-TYPE, TRH-RATINGPCO-CODE
SessionPASESSIONRequiredWhen (TRH-OBJ-ID != Zeroes)TRH-OBJ-IDSES-OBJ-ID

One to many (4) — child tables

RelationTableRulesConditionField map
CompetencyEMPCODESDelete CascadesValid When (TRH-OBJ-ID != Zeroes)TRH-OBJ-IDEPC-OBJ-ID, TRH-COMPANYEPC-COMPANY, ZeroesEPC-EMP-APP, TRH-EMPLOYEEEPC-EMPLOYEE, EPC-TYPE, EPC-CODE
CostPAEMPCOSTSTRH-COMPANYEMC-COMPANY, TRH-EMPLOYEEEMC-EMPLOYEE, TRH-COURSEEMC-COURSE, EMC-DATE, EMC-COST-TYPE, EMC-COST-CAT
CoursePACOURSETRH-COURSECRS-COURSE, CRS-EFFECTIVE-DATE
TrackcoursesPATRACKDTLTRH-COURSETKD-COURSE, TKD-TRACK

Programs

Updated by (5)

Referenced by (10)