PAINSTRUCT – Instructor Information
- System
- Personnel (PA)
- Prefix
INS- Primary key
INSTRUCT- Fields
- 28
- Updated by
- 1 program
- Referenced by
- 46 programs
PAINSTRUCT is the Instructor Information table in Lawson Personnel (prefix INS). It is indexed by INSTRUCT (INSSET1); alternate indexes: INSSET2 and INSSET3. It is related 1:1 to PRSYSTEM, INSTCTRYCD, EMPLOYEE and PAEMPLOYEE and 1:M to HRCORRESP, PAINSCOURS and PAINSTSES. It is updated by TR07.1 and referenced by BN305, HR11.1, HR11.2, HR11.4, HR28.1, HR30.1, HR511, LT101 and 38 more. The table has 28 fields, 3 indexes and 7 documented relations.
About PAINSTRUCT
Contains instructor definition information.
Fields (28)
Column = COBOL field name without the INS- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
INS-INSTRUCT PKINSTRUCT | Numeric 10 | Contains the instructor number. | TR07.1 |
INS-INSTRUCT-EMPLRINSTRUCT_EMPLR | Alpha 60 (Lower Case) | Contains the instructor's employer. | TR07.1 |
INS-COMPANYCOMPANY | Numeric 4 | Contains the company number. | TR07.1 |
INS-EMPLOYEEEMPLOYEE | Numeric 9 | Contains 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. | TR07.1 |
INS-FIRST-NAMEFIRST_NAME | Alpha 15 (Lower Case) | Contains the instructor's first name, if the instructor is not an employee.
| TR07.1 |
INS-LAST-NAMELAST_NAME | Alpha 30 (Lower Case) | Contains the instructor's last name if the instructor is not an employee.
| TR07.1 |
INS-MIDDLE-INITMIDDLE_INIT | Alpha 1 | Contains the instructor's middle initial if the instructor is not an employee.
| TR07.1 |
INS-ADDR1ADDR1 | Alpha 30 (Lower Case) | Contains the first line of address information if the instructor is not an employee.
| TR07.1 |
INS-ADDR2ADDR2 | Alpha 30 (Lower Case) | Contains the second line of address information if the instructor is not an employee.
| TR07.1 |
INS-ADDR3ADDR3 | Alpha 30 (Lower Case) | Contains the third line of address information if the instructor is not an employee.
| TR07.1 |
INS-ADDR4ADDR4 | Alpha 30 (Lower Case) | Contains the fourth line of address information if the instructor is not an employee.
| TR07.1 |
INS-CITYCITY | Alpha 58 (Lower Case) | Contains the city of the address if the instructor is not an employee.
| TR07.1 |
INS-STATESTATE | Alpha 2 | Contains the two-character state code if the instructor is not an employee.
| TR07.1 |
INS-ZIPZIP | Alpha 10 | Contains the postal code of the instructor's address if the instructor is not an employee.
| TR07.1 |
INS-HM-PHONE-CNTRYHM_PHONE_CNTRY | Alpha 6 | Contains the country code for the instructor's home telephone number if the instructor is not an employee.
| TR07.1 |
INS-HM-PHONE-NBRHM_PHONE_NBR | Alpha 15 | Contains the instructor's home telephone number if the instructor is not an employee.
| TR07.1 |
INS-WK-PHONE-CNTRYWK_PHONE_CNTRY | Alpha 6 | Contains the country code for the instructor's work telephone number if the instructor is not an employee.
| TR07.1 |
INS-WK-PHONE-NBRWK_PHONE_NBR | Alpha 15 | Contains the instructor's work telephone number if the instructor is not an employee.
| TR07.1 |
INS-WK-PHONE-EXTWK_PHONE_EXT | Alpha 5 | Contains the instructor's work telephone extension if the instructor is not an employee.
| TR07.1 |
INS-EFFECTIVE-DATEEFFECTIVE_DATE | Numeric 8 (yyyymmdd) | Contains the first date the instructor can teach a course. | TR07.1 |
INS-END-DATEEND_DATE | Numeric 8 (yyyymmdd) | Contains the last date the instructor can teach a course. | TR07.1 |
INS-E-MAIL-ADDRE_MAIL_ADDR | Alpha 60 (Lower Case) | Contains the instructor's internal E-Mail address. | TR07.1 |
INS-SHORT-NAMESHORT_NAME | Derived | Contains the instructor's short name. | — |
INS-SHORT-EMPLOYERSHORT_EMPLOYER | Derived | Contains an abbreviated form of the instructor's employer if the instructor is not an employee.
| — |
INS-COUNTRY-CODECOUNTRY_CODE | Alpha 2 | Contains the country of the instructor's address. | TR07.1 |
INS-CONSENTCONSENT | Alpha 1 | " " = No
| TR07.1 |
INS-EMP-SHORT-NAMEEMP_SHORT_NAME | Derived | — | — |
INS-INS-SHORT-NAMEINS_SHORT_NAME | Derived | — | — |
Indexes (3)
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 |
|---|---|---|---|---|
INSSET1 | INSTRUCT | Primary | HR30.1, TR07.1, TR08.1, TR09.1, TR14.1, TR200, TR201, TR202 +7 more | |
INSSET2 | INSTRUCT* | TR07.1 | ||
INSSET3 | COMPANY, EMPLOYEE, LAST-NAME, FIRST-NAME, MIDDLE-INIT, INSTRUCT | KeyChange | BN305, HR11.1, HR11.2, HR11.4, HR28.1, HR511, LT101, LT111 +22 more (list truncated in source) |
Relations
One to one (4) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Company | PRSYSTEM | Not Required | Valid When (INS-COMPANY != Zeroes) | INS-COMPANY → PRS-COMPANY, Spaces → PRS-PROCESS-LEVEL |
| Country | INSTCTRYCD | Required | When (INS-COUNTRY-CODE != Spaces) | INS-COUNTRY-CODE → INT-COUNTRY-CODE |
| Employee | EMPLOYEE | Required | When (INS-EMPLOYEE != Zeroes) | INS-COMPANY → EMP-COMPANY, INS-EMPLOYEE → EMP-EMPLOYEE |
| Paemployee | PAEMPLOYEE | Not Required | Valid When (INS-EMPLOYEE != Zeroes) | INS-COMPANY → PEM-COMPANY, INS-EMPLOYEE → PEM-EMPLOYEE |
One to many (3) — child tables
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Correspondence | HRCORRESP | "5" → HCP-REQ-TYPE, INS-INSTRUCT → HCP-ID-NBR, Zeroes → HCP-COMPANY, Zeroes → HCP-DEPENDENT, → HCP-SEQ-NBR | ||
| Course Instr | PAINSCOURS | Delete Cascades | INS-INSTRUCT → INC-INSTRUCT, → INC-COURSE | |
| Session Instr | PAINSTSES | Delete Cascades | INS-INSTRUCT → ISE-INSTRUCT, → ISE-COURSE, → ISE-SESSION, → ISE-START-DATE, → ISE-INSTR-TYPE |
Programs
Updated by (1)
- TR07.1 Instructor
Referenced by (46)
- BN305 Highly Compensated Employees
- HR11.1 Employee
- HR11.2 Compensation Analysis
- HR11.4 Employee Assignment Inquiry
- HR28.1 Employee Ethnicity
- HR30.1 Correspondence Tracking
- HR511 Employee Conversion
- LT101 HRM Receiver Update
- LT111 HRM Receiver Update
- PA02.1 Position
- PA100 Action Update
- PA102 Position Update
- PA115 Employee Purge
- PA13.1 Multiple Positions and Jobs
- PA13.2 Multiple Position and Job History
- PA502 Position Conversion
- PA513 Position and Job Conversion
- PA52.1 Individual Action
- PA52.3 Mass Action
- PA52.4 Hire an Applicant
- PA52.5 Position and Job Action
- PR110 Step And Grade Audit
- PR113 United States Tax Deduction Update
- PR12.6 Employee Automatic Deposit
- PR120 Mass Pay Update
- PR13.1 Employee United States Taxes
- PR13.5 Employee Canada Taxes
- PR13.6 Employee Canada Taxes
- PR13.8 U.S. Tax Deduction Errors
- PR13.9 Employee Additional Tax Details
- PR30.2 Employee Automatic Time Record
- PR512 Employee ACH Distribution Interface
- TR08.1 Course Instructors
- TR09.1 Instructor Session
- TR14.1 Instructor Courses
- TR200 Notification Letter Extract
- TR201 Course Profile
- TR202 Course Catalog Extract
- TR204 Session Listing
- TR207 Instructor Listing
- TR21.1 Employee Training History
- TR22.1 Session Completion
- TR220 Session Roster
- TR26.1 Employee Training Competency Maintenance
- TR500 Training Conversion
- ZH510 Update PCP from ZPENDPCP