;document field to array subscript map;TAG;FIELD1;FIELD2;...;FIELDn
BLDDOC(DGPAT,DGRSLT)
;build results document based on DOCMAP table
; This procedure uses the array subscript to field location table
; in linetag DOCMAP to format the GETDEMO RPC result array.