REFERENC – Applicant Reference
- System
- Personnel (PA)
- Prefix
REF- Primary key
COMPANY,APPLICANT,SEQ-NBR- Fields
- 25
- Updated by
- 2 programs
- Referenced by
- 7 programs
REFERENC is the Applicant Reference table in Lawson Personnel (prefix REF). It is indexed by COMPANY, APPLICANT, SEQ-NBR (REFSET1); alternate indexes: REFSET2. It is related 1:1 to APPLICANT, PCODES, PRSYSTEM and INSTCTRYCD and 1:M to PACOMMENTS. It is updated by PA120 and PA32.1 and referenced by HR170, HR70.1, HR90.1, HREF.1, PA231, PA232 and PA241. The table has 25 fields, 2 indexes and 5 documented relations.
About REFERENC
The Applicant Reference file contains applicant reference information.
Fields (25)
Column = COBOL field name without the REF- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
REF-COMPANY PKCOMPANY | Numeric 4 | Contains the company number represents an established company. | PA32.1 |
REF-APPLICANT PKAPPLICANT | Numeric 9 | This field contains the applicant's number. | PA32.1 |
REF-SEQ-NBR PKSEQ_NBR | Numeric 4 | This field contains the reference sequence number, which is automatically assigned when the record is created. | PA32.1 |
REF-LAST-NAMELAST_NAME | Alpha 30 (Lower Case) | This field contains the reference's last name. | PA32.1 |
REF-FIRST-NAMEFIRST_NAME | Alpha 15 (Lower Case) | This field contains the reference's first name. | PA32.1 |
REF-MIDDLE-INITMIDDLE_INIT | Alpha 1 | This field contains the reference's middle initial. | PA32.1 |
REF-ADDR1ADDR1 | Alpha 30 (Lower Case) | This field contains the first line of the reference's address. | PA32.1 |
REF-ADDR2ADDR2 | Alpha 30 (Lower Case) | This field contains the second line of the reference's address. | PA32.1 |
REF-ADDR3ADDR3 | Alpha 30 (Lower Case) | Contains the third line of address information. | PA32.1 |
REF-ADDR4ADDR4 | Alpha 30 (Lower Case) | Contains the fourth line of address information. | PA32.1 |
REF-CITYCITY | Alpha 58 (Lower Case) | This field contains the city of the reference's address. | PA32.1 |
REF-STATESTATE | Alpha 2 | This field contains the state of the reference's address. | PA32.1 |
REF-ZIPZIP | Alpha 10 | This field contains the postal code of the reference's address. | PA32.1 |
REF-WK-PHONE-CNTRYWK_PHONE_CNTRY | Alpha 6 | Contains the country code of the reference's work telephone number. | PA32.1 |
REF-WK-PHONE-NBRWK_PHONE_NBR | Alpha 15 | Contains the reference's telephone number. | PA32.1 |
REF-WK-PHONE-EXTWK_PHONE_EXT | Alpha 5 | Contains the extension of the reference's work telephone number. | PA32.1 |
REF-HM-PHONE-CNTRYHM_PHONE_CNTRY | Alpha 6 | Contains the country code of the reference's home telephone number. | PA32.1 |
REF-HM-PHONE-NBRHM_PHONE_NBR | Alpha 15 | Contains the reference's home telephone number. | PA32.1 |
REF-CONTACT-FLAGCONTACT_FLAG | Alpha 1 | This field indicates if the reference has been contacted.
| PA32.1 |
REF-FULL-NAMEFULL_NAME | Derived | — | — |
REF-ASSOCIATIONASSOCIATION | Alpha 10 | Contains a value that indicates how the reference is related to the applicant. | PA32.1 |
REF-COUNTRY-CODECOUNTRY_CODE | Alpha 2 | Contains the country of the reference's address. | PA32.1 |
REF-DATE-STAMPDATE_STAMP | Numeric 8 (yyyymmdd) | This field contains the server date (month, date, and year) of the last change to this record. | PA32.1 |
REF-TIME-STAMPTIME_STAMP | Numeric 6 (hhmmss) | Contains the server time (hour, minute, and second) when the record was last changed. | PA32.1 |
REF-USER-IDUSER_ID | Alpha 10 (Lower Case) | — | PA32.1 |
Indexes (2)
Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.
| Index | Keys | Flags | Condition | Used in |
|---|---|---|---|---|
REFSET1 | COMPANY, APPLICANT, SEQ-NBR | Primary | HR170, HR70.1, HR90.1, HREF.1, PA232, PA241, PA32.1 | |
REFSET2 | COMPANY, APPLICANT, LAST-NAME, FIRST-NAME, MIDDLE-INIT, SEQ-NBR | KeyChange | PA120, PA231 |
Relations
One to one (4) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Applicant | APPLICANT | Required | REF-COMPANY → APL-COMPANY, REF-APPLICANT → APL-APPLICANT | |
| Association | PCODES | Required | When REF-ASSOCIATION != Spaces | "AS" → PCO-TYPE, REF-ASSOCIATION → PCO-CODE |
| Company | PRSYSTEM | Required | REF-COMPANY → PRS-COMPANY, Spaces → PRS-PROCESS-LEVEL | |
| Country | INSTCTRYCD | Required | When (REF-COUNTRY-CODE != Spaces) | REF-COUNTRY-CODE → INT-COUNTRY-CODE |
One to many (1) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Comments | PACOMMENTS | Delete Cascades | REF-COMPANY → PAC-COMPANY, 1 → PAC-EMP-APP, "RF" → PAC-CMT-TYPE, REF-APPLICANT → PAC-EMPLOYEE, Spaces → PAC-JOB-CODE, Spaces → PAC-ACTION-CODE, REF-SEQ-NBR → PAC-LN-NBR, → PAC-SEQ-NBR, → PAC-DATE |