Contract Maintenance and Purging (cntrmain)
Module Name |
cntrmain.pc |
Description |
Contract Maintenance and Purging |
Functional Area |
Contracts |
Module Type |
Admin |
Module Technology |
ProC |
Catalog ID |
RMS231 |
Wrapper Script |
rmswrap.ksh |
Design Overview
This program is used to mark contracts that have reached their end date to completed (for types A and B) or review status (for types C and D). This module also purges contracts that have remained in cancelled, worksheet, submitted, or complete status for a user-defined number of months without any orders and contacts marked for deletion. The number of months is determined by the system parameter for order history months.
Restart/Recovery
This batch program has two processing functions, one for purging and another for updating contracts. The purge function (delete_contracts) deletes and commits records via arrays whose size is defined in commit max counter while the update function (reset_inactive) updates records in bulk based on the update criteria. The program as a whole is inherently restartable.