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. PK = primary key (present in every index); SETn = leading/alternate key of that index.

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 SET3
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 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
TRHSET1
  1. COMPANY
  2. EMPLOYEE
  3. COURSE
  4. DATE-COMPLETED
PrimaryHR11.1, PA115, TR120, TR121, TR20.1, TR20.2, TR20.3, TR20.4 +5 more
TRHSET2
  1. COURSE
  2. COMPANY
  3. EMPLOYEE
  4. DATE-COMPLETED
TR201
TRHSET3
  1. OBJ-ID
  2. COMPANY
  3. EMPLOYEE
SubsetWhere OBJ-ID != ZeroesTR04.1, TR26.1
TRHSET4
  1. COMPANY
  2. EMPLOYEE
  3. DATE-COMPLETED ↓
  4. COURSE
—
TRHSET5
  1. COMPANY
  2. EMPLOYEE
  3. COURSE
  4. DATE-COMPLETED ↓
—

Relations

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

One to one (5) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequired
TRH-COMPANY→PRS-COMPANY (PRSSET1)
Spaces→PRS-PROCESS-LEVEL
EmployeeEMPLOYEERequired
TRH-COMPANY→EMP-COMPANY
TRH-EMPLOYEE→EMP-EMPLOYEE
PaemployeePAEMPLOYEERequired
TRH-COMPANY→PEM-COMPANY
TRH-EMPLOYEE→PEM-EMPLOYEE
RatingPCODESRequiredWhen (TRH-RATING != Spaces)
"PF"→PCO-TYPE
TRH-RATING→PCO-CODE
SessionPASESSIONRequiredWhen (TRH-OBJ-ID != Zeroes)
TRH-OBJ-ID→SES-OBJ-ID

One to many (4) — child tables

RelationTableRulesConditionField map
CompetencyEMPCODESDelete CascadesValid When (TRH-OBJ-ID != Zeroes)
TRH-OBJ-ID→EPC-OBJ-ID
TRH-COMPANY→EPC-COMPANY
Zeroes→EPC-EMP-APP
TRH-EMPLOYEE→EPC-EMPLOYEE
—→EPC-TYPE
—→EPC-CODE
CostPAEMPCOSTS
TRH-COMPANY→EMC-COMPANY
TRH-EMPLOYEE→EMC-EMPLOYEE
TRH-COURSE→EMC-COURSE
—→EMC-DATE
—→EMC-COST-TYPE
—→EMC-COST-CAT
CoursePACOURSE
TRH-COURSE→CRS-COURSE
—→CRS-EFFECTIVE-DATE
TrackcoursesPATRACKDTL
TRH-COURSE→TKD-COURSE
—→TKD-TRACK

Programs

Updated by (5)

Referenced by (10)