APPJOBHIST – Applicant Job History

System
Personnel (PA)
Prefix
AJH
Primary key
COMPANY, APPLICANT, EMPLOYEE, SEQ-NBR
Fields
35
Updated by
46 programs
Referenced by
8 programs

APPJOBHIST is the Applicant Job History table in Lawson Personnel (prefix AJH). It is indexed by COMPANY, APPLICANT, EMPLOYEE, SEQ-NBR (AJHSET1); alternate indexes: AJHSET2 and AJHSET3. It is related 1:1 to APPLICANT, CUCODES, PRSYSTEM, INSTCTRYCD, EMPLOYEE, JOBCODE and PAEMPLOYEE and 1:M to PACOMMENTS. It is updated by BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR11.1 and 38 more and referenced by HR170, HR70.1, HR90.1, PA219, PA231, PA233, PA241 and PA311. The table has 35 fields, 3 indexes and 10 documented relations.

About APPJOBHIST

The Applicant Job History file contains information about an applicant's previous job experience and history.

Fields (35)

Column = COBOL field name without the AJH- 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
#AJH-COMPANY PK
COMPANY
Numeric 4Contains the company number which represents an established company.PA19.1, PA33.1, PA533
#AJH-APPLICANT PK
APPLICANT
Numeric 9Contains the applicant's number. The number correlates all information about the applicant.BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR11.1 +37 more
#AJH-SEQ-NBR PK
SEQ_NBR
Numeric 4Contains a sequence number that keeps records unique. It is automatically assigned when records are created.BN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR11.1 +37 more
#AJH-EMPLOYER-NAME SET2
EMPLOYER_NAME
Alpha 30 (Lower Case)Contains the employer's name.PA19.1, PA33.1, PA533
#AJH-ADDR1
ADDR1
Alpha 30 (Lower Case)Contains first line of the previous employer's address.PA19.1, PA33.1, PA533
#AJH-ADDR2
ADDR2
Alpha 30 (Lower Case)Contains the second line of the previous employer's address.PA19.1, PA33.1, PA533
#AJH-ADDR3
ADDR3
Alpha 30 (Lower Case)Contains the third line of the previous employer's address.PA19.1, PA33.1, PA533
#AJH-ADDR4
ADDR4
Alpha 30 (Lower Case)Contains the fourth line of the previous employer's address.PA19.1, PA33.1, PA533
#AJH-CITY
CITY
Alpha 58 (Lower Case)Contains the city of the previous employer's address.PA19.1, PA33.1, PA533
#AJH-STATE
STATE
Alpha 2Contains the state of the previous employer's address.PA19.1, PA33.1, PA533
#AJH-ZIP
ZIP
Alpha 10Contains the postal code of the previous employer's address.PA19.1, PA33.1, PA533
#AJH-TITLE
TITLE
Alpha 30 (Lower Case)Contains the supervisor's title at the applicant's previous job.PA19.1, PA33.1, PA533
#AJH-SUP-NAME
SUP_NAME
Alpha 30 (Lower Case)Contains the name of the applicant's previous supervisor.PA19.1, PA33.1, PA533
#AJH-WK-PHONE-CNTRY
WK_PHONE_CNTRY
Alpha 6Contains the prefix of the applicant's previous work telephone number.PA19.1, PA33.1, PA533
#AJH-WK-PHONE-NBR
WK_PHONE_NBR
Alpha 15Contains the applicant's previous work telephone number.PA19.1, PA33.1, PA533
#AJH-WK-PHONE-EXT
WK_PHONE_EXT
Alpha 5Contains the extension of the applicant's previous work telephone number.PA19.1, PA33.1, PA533
#AJH-BEG-DATE
BEG_DATE
Numeric 8 (yyyymmdd)Contains the beginning employment date from the applicant's previous employment.PA19.1, PA33.1, PA533
#AJH-END-DATE
END_DATE
Numeric 8 (yyyymmdd)Contains the ending employment date from the applicant's previous employment.PA19.1, PA33.1, PA533
#AJH-BEG-PAY
BEG_PAY
Signed 11.2Contains the applicant's beginning salary from the previous employment.PA19.1, PA33.1, PA533
#AJH-END-PAY
END_PAY
Signed 11.2Contains the applicant's ending salary from the previous employment.PA19.1, PA33.1, PA533
#AJH-JOB-CODE
JOB_CODE
Alpha 9Contains the job code in this company that most closely resembles the employee's previous job.PA19.1, PA33.1, PA533
#AJH-CUR-EMPR-FLAG
CUR_EMPR_FLAG
Alpha 1Indicates whether the employer is the applicant's current employer.
  • N Not Current Employer
  • Y Current Employer
PA19.1, PA33.1, PA533
#AJH-CONTACT-FLAG
CONTACT_FLAG
Alpha 1Indicates whether the previous employer has been contacted.
  • N Not Contacted
  • Y Contacted
PA19.1, PA33.1, PA533
#AJH-CAN-CALL-FLAG
CAN_CALL_FLAG
Alpha 1Indicates whether the previous employer can be contacted.
  • N Do Not Contact
  • Y Can Be Contacted
PA19.1, PA33.1, PA533
#AJH-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 +37 more
#AJH-DATE-STAMP
DATE_STAMP
Numeric 8 (yyyymmdd)This field contains the server date (month, date, and year) of the last change to this record.PA19.1, PA33.1, PA533
#AJH-TIME-STAMP
TIME_STAMP
Numeric 6 (hhmmss)Contains the server time (hour, minute, and second) when the record was last changed.PA19.1, PA33.1, PA533
#AJH-USER-ID
USER_ID
Alpha 10 (Lower Case)PA19.1, PA33.1, PA533
#AJH-CURRENCY-CODE
CURRENCY_CODE
Alpha 5Contains the currency in which the applicant pay was recorded.PA19.1, PA33.1, PA533
#AJH-CURR-ND
CURR_ND
Numeric 1Contains the number of decimals for the currency.PA19.1, PA33.1, PA533
#AJH-COUNTRY-CODE
COUNTRY_CODE
Alpha 2Contains the country of the applicant's address.PA19.1, PA33.1, PA533
#AJH-BASE-BEG-PAY
BASE_BEG_PAY
Signed 11.2The applicant's beginning base pay.PA19.1, PA33.1, PA533
#AJH-BASE-END-PAY
BASE_END_PAY
Signed 11.2Contains the applicant's ending base pay.PA19.1, PA33.1, PA533
#AJH-BASE-CURRENCY
BASE_CURRENCY
Alpha 5The company base currency.PA19.1, PA33.1, PA533
#AJH-BASE-ND
BASE_ND
Numeric 1The number of decimal positions defined for the company base currency.PA19.1, PA33.1, PA533

Indexes (3)

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
AJHSET1
  1. COMPANY
  2. APPLICANT
  3. EMPLOYEE
  4. SEQ-NBR
PrimaryBN305, HAP3.1, HCRE.1, HEP4.1, HPOS.1, HPQC.1, HPRS.1, HR11.1 +22 more (list truncated in source)
AJHSET2
  1. COMPANY
  2. APPLICANT
  3. EMPLOYEE
  4. EMPLOYER-NAME
  5. SEQ-NBR
KeyChangePA120, PA231
AJHSET3
  1. COMPANY
  2. EMPLOYEE
  3. SEQ-NBR
  4. APPLICANT
SubsetWhere EMPLOYEE != ZeroesHR11.1, HR90.1, PA115, PA19.1, PA219, PA311

Relations

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

One to one (8) — lookups and parents

RelationTableRulesConditionField map
ApplicantAPPLICANTRequiredWhen AJH-APPLICANT != Zeroes
AJH-COMPANYAPL-COMPANY
AJH-APPLICANTAPL-APPLICANT
Base CurrencyCUCODESRequiredWhen (AJH-CURRENCY-CODE != Spaces)
AJH-BASE-CURRENCYCUC-CURRENCY-CODE
CompanyPRSYSTEMRequired
AJH-COMPANYPRS-COMPANY
SpacesPRS-PROCESS-LEVEL
CountryINSTCTRYCDRequiredWhen (AJH-COUNTRY-CODE != Spaces)
AJH-COUNTRY-CODEINT-COUNTRY-CODE
CurrencyCUCODESRequiredWhen (AJH-CURRENCY-CODE != Spaces)
AJH-CURRENCY-CODECUC-CURRENCY-CODE
EmployeeEMPLOYEERequiredWhen AJH-EMPLOYEE != Zeroes
AJH-COMPANYEMP-COMPANY
AJH-EMPLOYEEEMP-EMPLOYEE
Job CodeJOBCODERequiredWhen AJH-JOB-CODE != Spaces
AJH-COMPANYJBC-COMPANY
AJH-JOB-CODEJBC-JOB-CODE
PaemployeePAEMPLOYEERequiredWhen AJH-EMPLOYEE != Zeroes
AJH-COMPANYPEM-COMPANY
AJH-EMPLOYEEPEM-EMPLOYEE

One to many (2) — child tables

RelationTableRulesConditionField map
CommentsPACOMMENTSDelete CascadesValid When AJH-APPLICANT != Zeroes
AJH-COMPANYPAC-COMPANY
1PAC-EMP-APP
"JH"PAC-CMT-TYPE
AJH-APPLICANTPAC-EMPLOYEE
SpacesPAC-JOB-CODE
SpacesPAC-ACTION-CODE
AJH-SEQ-NBRPAC-LN-NBR
PAC-SEQ-NBR
PAC-DATE
Emp CommentsPACOMMENTSDelete CascadesValid When AJH-EMPLOYEE != Zeroes
AJH-COMPANYPAC-COMPANY
ZeroesPAC-EMP-APP
"JH"PAC-CMT-TYPE
AJH-EMPLOYEEPAC-EMPLOYEE
SpacesPAC-JOB-CODE
SpacesPAC-ACTION-CODE
AJH-SEQ-NBRPAC-LN-NBR
PAC-SEQ-NBR
PAC-DATE

Programs

Updated by (46)

Referenced by (8)