PWCOMPUTE – HR Writer Compute Statements
- System
- Human Resources (HR)
- Prefix
PWC- Primary key
AUTHOR-NAME,COLUMN-NAME- Fields
- 33
- Updated by
- 1 program
- Referenced by
- 7 programs
PWCOMPUTE is the HR Writer Compute Statements table in Lawson Human Resources (prefix PWC). It is indexed by AUTHOR-NAME, COLUMN-NAME (PWCSET1); alternate indexes: PWCSET2. It is related 1:1 to PWAUTHOR and PADICT. It is updated by HR67.1 and referenced by HR170, HR60.1, HR65.2, HR65.3, HR70.1, HR70.2 and HR70.3. The table has 33 fields, 2 indexes and 4 documented relations.
About PWCOMPUTE
Contains the compute statements used with the HR Writer Report Request. HR67.1 (HR Writer Compute Statements) is the primary program that updates this file.
Fields (33)
Column = COBOL field name without the PWC- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.
| Field / column | Type | Description & values | Updated by |
|---|---|---|---|
PWC-AUTHOR-NAME PKAUTHOR_NAME | Alpha 10 | Contains the author responsible for this compute statement. The author name must be defined in the Author file. | HR67.1 |
PWC-COLUMN-NAME PKCOLUMN_NAME | Alpha 20 (Lower Case) | Contains the compute statement name that is listed under the topic CM in HR65.2 (HR Writer Format Item Selection). | HR67.1 |
PWC-COMPUTE-NBRCOMPUTE_NBR | Numeric 4 | Contains the sequence number of the compute statement. A compute number is automatically assigned in sequential order by author. | HR67.1 |
PWC-FLD-NBR1FLD_NBR1 | Numeric 4 | Contains the item number if the first factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-TOPIC1TOPIC1 | Alpha 2 | Contains the topic with which the first selected item in the compute statement is associated. | HR67.1 |
PWC-DB-FILE1DB_FILE1 | Alpha 3 | Contains the file prefix of the item if the first factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-CONSTANT1CONSTANT1 | Signed 11.4 | Contains the value of the constant if the first factor of the compute statement is a constant. | HR67.1 |
PWC-COLUMN1COLUMN1 | Numeric 2 | Contains the column used if the first factor of the compute statement is one of the columns defined in the report. 01 15 | HR67.1 |
PWC-SIZE1SIZE1 | Numeric 2 | Contains the size of the item if the first factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-DECIMALS1DECIMALS1 | Numeric 1 | Contains the number of decimal places for the item if the first factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-PRT-TYPE1PRT_TYPE1 | Alpha 1 | Contains the item's print type if the first factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-OPER1OPER1 | Alpha 1 | Contains the mathematical operation performed on factors 1 and 2. + = Add
| HR67.1 |
PWC-FLD-NBR2FLD_NBR2 | Numeric 4 | Contains the item number if the second factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-TOPIC2TOPIC2 | Alpha 2 | Contains the topic with which the second selected item in the compute statement is associated. | HR67.1 |
PWC-DB-FILE2DB_FILE2 | Alpha 3 | Contains the file prefix of the item if the second factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-CONSTANT2CONSTANT2 | Signed 11.4 | Contains the value of the constant if the second factor of the compute statement is a constant. | HR67.1 |
PWC-COLUMN2COLUMN2 | Numeric 2 | Contains the column used if the second factor of the compute statement is one of the columns defined in the report. 01 15 | HR67.1 |
PWC-SIZE2SIZE2 | Numeric 2 | Contains the size of the item if the second factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-DECIMALS2DECIMALS2 | Numeric 1 | Contains the number of decimal places for the item if the second factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-PRT-TYPE2PRT_TYPE2 | Alpha 1 | Contains the item's print type if the second factor of the compute statement is a data dictionary item. (See the description of the HR Systems Data Dictionary file for information regarding print type.) | HR67.1 |
PWC-OPER2OPER2 | Alpha 1 | Contains the mathematical operation performed on factors 2 and 3. + = Add
| HR67.1 |
PWC-FLD-NBR3FLD_NBR3 | Numeric 4 | Contains the item number if the third factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-TOPIC3TOPIC3 | Alpha 2 | Contains the topic with which the third selected data item for the compute statement is associated. | HR67.1 |
PWC-DB-FILE3DB_FILE3 | Alpha 3 | Contains the file prefix of the item if the third factor of the compute statement is a dictionary item. | HR67.1 |
PWC-CONSTANT3CONSTANT3 | Signed 11.4 | Contains the value of the constant if the third factor of the compute statement is a constant. | HR67.1 |
PWC-COLUMN3COLUMN3 | Numeric 2 | Contains the column used if the third factor of the compute statement is one of the columns defined in the report. 01 15 | HR67.1 |
PWC-SIZE3SIZE3 | Numeric 2 | Contains the size of the item if the third factor of the compute statement is a dictionary item. | HR67.1 |
PWC-DECIMALS3DECIMALS3 | Numeric 1 | Contains the number of decimal places for the item if the third factor of the compute statement is a data dictionary item. | HR67.1 |
PWC-PRT-TYPE3PRT_TYPE3 | Alpha 1 | Contains the item's print type if the third factor of the compute statement is a data dictionary item. (See the description of the HR Systems Data Dictionary file for information regarding print type.) | HR67.1 |
PWC-HEADINGHEADING | Alpha 15 (Lower Case) | Occurs 2 Times Contains the user-defined column heading for the compute statement. You can enter up to two lines of text. | HR67.1 |
PWC-HEADER-SIZEHEADER_SIZE | Numeric 2 | Contains the number of characters in the largest header. | HR67.1 |
PWC-FIRST-OPERFIRST_OPER | Numeric 1 | Identifies the mathematical operation that is performed first if the compute statement includes 2 operations. | HR67.1 |
PWC-MIN-SIZEMIN_SIZE | Numeric 2 | Contains the minimum field size. The column header defined for the field determines the minimum field size which is used to edit the minimum field sizes in HR65.3 (HR Writer Format Item Order). | HR67.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 |
|---|---|---|---|---|
PWCSET1 | AUTHOR-NAME, COLUMN-NAME | Primary | HR60.1, HR65.2, HR67.1 | |
PWCSET2 | AUTHOR-NAME, COMPUTE-NBR | HR170, HR65.2, HR65.3, HR70.1, HR70.2, HR70.3 |
Relations
One to one (4) — lookups and parents
| Relation | Table | Rules | Condition | Field map |
|---|---|---|---|---|
| Author | PWAUTHOR | Required | PWC-AUTHOR-NAME → PWA-AUTHOR-NAME | |
| Item Nbr1 | PADICT | Required | When PWC-FLD-NBR1 != Zeroes | PWC-FLD-NBR1 → PAD-FLD-NBR |
| Item Nbr2 | PADICT | Required | When PWC-FLD-NBR2 != Zeroes | PWC-FLD-NBR2 → PAD-FLD-NBR |
| Item Nbr3 | PADICT | Required | When PWC-FLD-NBR3 != Zeroes | PWC-FLD-NBR3 → PAD-FLD-NBR |
Programs
Updated by (1)
- HR67.1 Human Resource Writer Compute Statement