PAEMPAPTST – Contains employee test information.

System
Personnel (PA)
Prefix
PTS
Primary key
COMPANY, EMP-APP, EMPLOYEE, TEST, SEQ-NBR
Fields
28
Updated by
50 programs
Referenced by
6 programs

PAEMPAPTST is the Contains employee test information. table in Lawson Personnel (prefix PTS). It is indexed by COMPANY, EMP-APP, EMPLOYEE, TEST, SEQ-NBR (PTSSET1); alternate indexes: PTSSET2, PTSSET3, PTSSET4, PTSSET5 and PTSSET6. It is related 1:1 to APPLICANT, PRSYSTEM, EMPLOYEE, OSHESTAB, PATSTSETUP, OSHA, PCODES, PAEMPLOYEE and 1 more. It is updated by BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR00.1 and 42 more and referenced by PA248, PA249, PA48.1, PA81.1, PA81.2 and ZH500. The table has 28 fields, 6 indexes and 13 documented relations.

About PAEMPAPTST

Contains employee test information. This file is maintained primarily by PA49.1 (Employee Tests).

Fields (28)

Column = COBOL field name without the PTS- 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
#PTS-COMPANY PK
COMPANY
Numeric 4—PA149, PA49.1, PA49.3, PA549
#PTS-EMP-APP PK
EMP_APP
Numeric 1Indicates whether the person is an external or internal applicant. An external applicant is a person applying from outside the company; an internal applicant is an employee applying from inside the company.
  • 0 Employee
  • 1 Applicant
BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR11.1 +38 more
#PTS-EMPLOYEE PK
EMPLOYEE
Numeric 9Contains the employee number. Each person employed by the company is assigned a unique number. The system uses the employee number to correlate all of the information related to that person.BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR11.1 +38 more
#PTS-TEST PK
TEST
Alpha 10Contains the test.PA149, PA49.1, PA49.3, PA549
#PTS-SEQ-NBR PK
SEQ_NBR
Numeric 4An automatically assigned sequence number.PA149, PA49.1, PA49.3, PA549
#PTS-SCHED-DATE SET5 SET6
SCHED_DATE
Numeric 8 (yyyymmdd)Contains the date on which the test is scheduled.PA149, PA49.1, PA49.3, PA549
#PTS-STATUS
STATUS
Numeric 1Contains the status for the test.
  • 1 Scheduled
  • 2 In Process
  • 3 Refused
  • 4 Withdrawn
  • 5 Completed
PA149, PA49.1, PA49.3, PA549
#PTS-EFFECT-DATE
EFFECT_DATE
Numeric 8 (yyyymmdd)Contains the date on which the status is effective.PA149, PA49.1, PA49.3, PA549
#PTS-RESULT1
RESULT1
Alpha 10Contains the test result.PA149, PA49.1, PA49.3, PA549
#PTS-RESULT-DESC
RESULT_DESC
Alpha 40 (Lower Case)Contains the result description.PA149, PA49.1, PA49.3, PA549
#PTS-NEXT-DATE SET3
NEXT_DATE
Numeric 8 (yyyymmdd)Contains the date of the next follow up test.PA149, PA49.1, PA49.3, PA549
#PTS-REASON
REASON
Alpha 10Contains the reason for the test.PA149, PA49.1, PA49.3, PA549
#PTS-NOTIFY-DATE
NOTIFY_DATE
Numeric 8 (yyyymmdd)Contains the date on which the employee is notified.PA149, PA49.1, PA49.3, PA549
#PTS-NOTIFY-TYPE
NOTIFY_TYPE
Alpha 10Contains the method by which the employee is notified of the test.PA149, PA49.1, PA49.3, PA549
#PTS-ESTABLISHMENT
ESTABLISHMENT
Alpha 10If the test is the result of an incident, this field contains the establishment where the incident occurred.PA149, PA49.1, PA49.3, PA549
#PTS-INCIDENT-NBR
INCIDENT_NBR
Numeric 4If the test is a result of an incident, this field contains the incident number.PA149, PA49.1, PA49.3, PA549
#PTS-REFUSE-REASON
REFUSE_REASON
Alpha 10Contains the reason the employee refused to take the test.PA149, PA49.1, PA49.3, PA549
#PTS-RENEW-DATE
RENEW_DATE
Numeric 8 (yyyymmdd)Contains the date for the renewal test.PA149, PA49.1, PA49.3, PA549
#PTS-RENEW-TEST
RENEW_TEST
Alpha 10Contains the renewal test.PA149, PA49.1, PA49.3, PA549
#PTS-FOLLOW-DATE
FOLLOW_DATE
Numeric 8 (yyyymmdd)Contains the date for the follow up test.PA149, PA49.1, PA49.3, PA549
#PTS-FOLLOW-TEST
FOLLOW_TEST
Alpha 10Contains the follow up test.PA149, PA49.1, PA49.3, PA549
#PTS-COMMENT
COMMENT
Alpha 40 (Lower Case)Contains comments about the follow up test.PA149, PA49.1, PA49.3, PA549
#PTS-OBJ-ID SET2
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.BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR11.1 +38 more
#PTS-PARENT-OBJ-ID SET2
PARENT_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.BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR11.1 +38 more
#PTS-DATE-STAMP
DATE_STAMP
Numeric 8 (yyyymmdd)This field contains the server date (month, date, and year) of the last change to this record.PA149, PA49.1, PA49.3, PA549
#PTS-TIME-STAMP
TIME_STAMP
Numeric 6 (hhmmss)Contains the server time (hour, minute, and second) when the record was last changed.PA149, PA49.1, PA49.3, PA549
#PTS-USER-ID
USER_ID
Alpha 10 (Lower Case)—PA149, PA49.1, PA49.3, PA549
#PTS-WF-EMP-TST-SEQ
WF_EMP_TST_SEQ
Derived——

Indexes (6)

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
PTSSET1
  1. COMPANY
  2. EMP-APP
  3. EMPLOYEE
  4. TEST
  5. SEQ-NBR
PrimaryBN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR00.1 +22 more (list truncated in source)
PTSSET2
  1. PARENT-OBJ-ID
  2. OBJ-ID
KeyChangePA149, PA248, PA249, PA349, PA49.1, PA49.3, PA549
PTSSET3
  1. COMPANY
  2. NEXT-DATE
  3. TEST
  4. EMP-APP
  5. EMPLOYEE
  6. SEQ-NBR
KeyChange, SubsetWhere (NEXT-DATE != Zeroes)PA149
PTSSET4
  1. COMPANY
  2. TEST
  3. EMP-APP
  4. EMPLOYEE
  5. SEQ-NBR ↓
KeyChangePA149, PA248, PA349, PA48.1, PA49.1, PA49.3, PA549, PA81.2
PTSSET5
  1. COMPANY
  2. EMP-APP
  3. EMPLOYEE
  4. TEST
  5. SCHED-DATE ↓
  6. SEQ-NBR
KeyChangePA149, PA249, PA49.1, PA49.2, PA49.3, PA549, PA81.1
PTSSET6
  1. COMPANY
  2. SCHED-DATE
  3. TEST
  4. EMP-APP
  5. EMPLOYEE
  6. SEQ-NBR
KeyChange, SubsetWhere STATUS < 3PA149

Relations

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

One to one (13) — lookups and parents

RelationTableRulesConditionField map
ApplicantAPPLICANTRequiredWhen (PTS-EMP-APP = 1)
PTS-COMPANY→APL-COMPANY
PTS-EMPLOYEE→APL-APPLICANT
CompanyPRSYSTEMRequired
PTS-COMPANY→PRS-COMPANY
Spaces→PRS-PROCESS-LEVEL
EmployeeEMPLOYEERequiredWhen (PTS-EMP-APP = Zeroes)
PTS-COMPANY→EMP-COMPANY
PTS-EMPLOYEE→EMP-EMPLOYEE
EstablishmentOSHESTABRequiredWhen (PTS-ESTABLISHMENT != Spaces)
PTS-COMPANY→OTB-COMPANY
PTS-ESTABLISHMENT→OTB-ESTABLISHMENT
Follow TestPATSTSETUPRequiredWhen (PTS-FOLLOW-TEST != Spaces)
PTS-COMPANY→PAP-COMPANY
PTS-FOLLOW-TEST→PAP-TEST
IncidentOSHARequiredWhen (PTS-INCIDENT-NBR != Zeroes)
PTS-COMPANY→OSH-COMPANY
PTS-EMPLOYEE→OSH-EMPLOYEE
PTS-ESTABLISHMENT→OSH-ESTABLISHMENT
PTS-INCIDENT-NBR→OSH-SEQ-NBR
Notify TypePCODESRequiredWhen (PTS-NOTIFY-TYPE != Spaces)
"TN"→PCO-TYPE
PTS-NOTIFY-TYPE→PCO-CODE
PaemployeePAEMPLOYEERequiredWhen (PTS-EMP-APP = Zeroes)
PTS-COMPANY→PEM-COMPANY
PTS-EMPLOYEE→PEM-EMPLOYEE
ReasonPCODESRequiredWhen (PTS-REASON != Spaces)
"TA"→PCO-TYPE
PTS-REASON→PCO-CODE
RefusalPCODESRequiredWhen (PTS-REFUSE-REASON != Spaces)
"TF"→PCO-TYPE
PTS-REFUSE-REASON→PCO-CODE
Renew TestPATSTSETUPRequiredWhen (PTS-RENEW-TEST != Spaces)
PTS-COMPANY→PAP-COMPANY
PTS-RENEW-TEST→PAP-TEST
ResultsPATSTRESLTRequiredWhen (PTS-RESULT1 != Spaces)
PTS-COMPANY→PTR-COMPANY
PTS-TEST→PTR-TEST
PTS-RESULT1→PTR-CODE
TestPATSTSETUPRequired
PTS-COMPANY→PAP-COMPANY
PTS-TEST→PAP-TEST

Programs

Updated by (50)

Referenced by (6)