; Main entry point for the Pre-Registration Background Job.
; Variables
; DGPTOD - Current date
; DGPNL - Message line count for mail message
; DGPFNC - Job function
; DGPNDAY - Number of days to keep entries in the call list
; DGPTXT - Message array
; DGPDT - Last date to keep entries in call list for, uses DGPNDAY
; DGPN1-2 - Temporary Var's for $ORDER
; DGPCLD - Count of call log entries purged
MES1
;
SEND
; Send notification of actions taken to mailgroup
MES(TAG)
; Build message for missing parameters
PURGECP
; Purge called patients from the Pre-registration call list
; Variables
; DGPDEL - Counter of records deleted
EXIT
;
KILLALL
; Clear all entries from the pre-registration call list.
; Variables
; DGPTOT - Counter if entries deleted