; list global builder
; Input:
; DGBEG - sort beginning date
; DGEND - sort ending date
; DGSTAT - status of assignment
; DGPI - principal investigator person ien
; DGPINAME - name of principal investigator
; DGDFNLST - array of patient dfn's assigned to the flag
; DGLIST - temp global name used for report list