Utility Programs
Payroll for North America includes a series of utility programs that are called by the COBOL business processes that make up the payroll processes.
This topic discusses:
-
PTPDTWRK utility
-
PSPANNLZ utility
PTPDTWRK Utility
PTPDTWRK is a date manipulation routine used for various date functions:
| Date Function | Description |
|---|---|
|
D |
Date difference. How many days between? |
|
A |
Add days to a date. |
|
G |
Age. How old is this employee? Used for deduction calculations. |
|
W |
Days of week. Used for Canadian weeks/calendar build. |
|
K |
Work days. |
|
M |
Month difference. Used for deduction calculations. |
|
C |
Converts microseconds to hours, minutes, seconds, and microseconds. |
|
L |
Calculates leap days. |
|
T |
Calculates the difference between two date/time entries in seconds. |
|
I |
For future use. |
PSPANNLZ Utility
PSPANNLZ annualizes and deannualizes amounts. The input consists of:
-
Amount. What amount is for (for example, weekly, or monthly).
-
Old frequency type (for example weekly, or monthly).
-
Old frequency factor.
If this value is supplied as zero, then the value will be determined from the old frequency type.
-
New frequency type (for example weekly, or monthly.
-
New frequency factor.
If this value is supplied as zero, then the value will be determined from the new frequency type.
The output is the amount relating to the output format.