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.

Field / columnTypeDescription & valuesUpdated by
PTS-COMPANY PK
COMPANY
Numeric 4PA149, 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
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
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
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
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 marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
PTSSET1COMPANY, EMP-APP, EMPLOYEE, TEST, SEQ-NBRPrimaryBN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR00.1 +22 more (list truncated in source)
PTSSET2PARENT-OBJ-ID, OBJ-IDKeyChangePA149, PA248, PA249, PA349, PA49.1, PA49.3, PA549
PTSSET3COMPANY, NEXT-DATE, TEST, EMP-APP, EMPLOYEE, SEQ-NBRKeyChange, SubsetWhere (NEXT-DATE != Zeroes)PA149
PTSSET4COMPANY, TEST, EMP-APP, EMPLOYEE, SEQ-NBR*KeyChangePA149, PA248, PA349, PA48.1, PA49.1, PA49.3, PA549, PA81.2
PTSSET5COMPANY, EMP-APP, EMPLOYEE, TEST, SCHED-DATE*, SEQ-NBRKeyChangePA149, PA249, PA49.1, PA49.2, PA49.3, PA549, PA81.1
PTSSET6COMPANY, SCHED-DATE, TEST, EMP-APP, EMPLOYEE, SEQ-NBRKeyChange, SubsetWhere STATUS < 3PA149

Relations

One to one (13) — lookups and parents

RelationTableRulesConditionField map
ApplicantAPPLICANTRequiredWhen (PTS-EMP-APP = 1)PTS-COMPANYAPL-COMPANY, PTS-EMPLOYEEAPL-APPLICANT
CompanyPRSYSTEMRequiredPTS-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
EmployeeEMPLOYEERequiredWhen (PTS-EMP-APP = Zeroes)PTS-COMPANYEMP-COMPANY, PTS-EMPLOYEEEMP-EMPLOYEE
EstablishmentOSHESTABRequiredWhen (PTS-ESTABLISHMENT != Spaces)PTS-COMPANYOTB-COMPANY, PTS-ESTABLISHMENTOTB-ESTABLISHMENT
Follow TestPATSTSETUPRequiredWhen (PTS-FOLLOW-TEST != Spaces)PTS-COMPANYPAP-COMPANY, PTS-FOLLOW-TESTPAP-TEST
IncidentOSHARequiredWhen (PTS-INCIDENT-NBR != Zeroes)PTS-COMPANYOSH-COMPANY, PTS-EMPLOYEEOSH-EMPLOYEE, PTS-ESTABLISHMENTOSH-ESTABLISHMENT, PTS-INCIDENT-NBROSH-SEQ-NBR
Notify TypePCODESRequiredWhen (PTS-NOTIFY-TYPE != Spaces)"TN"PCO-TYPE, PTS-NOTIFY-TYPEPCO-CODE
PaemployeePAEMPLOYEERequiredWhen (PTS-EMP-APP = Zeroes)PTS-COMPANYPEM-COMPANY, PTS-EMPLOYEEPEM-EMPLOYEE
ReasonPCODESRequiredWhen (PTS-REASON != Spaces)"TA"PCO-TYPE, PTS-REASONPCO-CODE
RefusalPCODESRequiredWhen (PTS-REFUSE-REASON != Spaces)"TF"PCO-TYPE, PTS-REFUSE-REASONPCO-CODE
Renew TestPATSTSETUPRequiredWhen (PTS-RENEW-TEST != Spaces)PTS-COMPANYPAP-COMPANY, PTS-RENEW-TESTPAP-TEST
ResultsPATSTRESLTRequiredWhen (PTS-RESULT1 != Spaces)PTS-COMPANYPTR-COMPANY, PTS-TESTPTR-TEST, PTS-RESULT1PTR-CODE
TestPATSTSETUPRequiredPTS-COMPANYPAP-COMPANY, PTS-TESTPAP-TEST

Programs

Updated by (50)

Referenced by (6)