; total of actions by stopcode for division
; tc = check out total for division
; ta = action required tot for div.
; ti = in-pat tot for div.
TDIV
; final totals by division for med center
; reuse tc for check out total by med ctr
; ta for action req tot
; ti for in-pat tot
; tcd = check out totals by div
; tad = action req totals by div
; tip = in-pat totals by div
HDR(SDIV)
; page header
STCNT(STAT,COUNT)
; increment action count for stopcode
; sdar = action req by stop code
; sdco = checked out by stop code
; sdip = in-pat by stop code
BLD
; build report from data stored in TMP global
BLDQ
SUBTOT(SDCODE)
; totals by stopcode
; tcocnt = checked out total by division (per page)
; tarcnt = action req tot by div/page
; tipcnt = In-pat tot by div/page