PDOC

PDOC reports are transaction type reports, but have a high level index. For example, a bank might have a report that is organized by Branch Number. Within each branch, the report is sorted on some column. The GROUPMAXPAGES parameter can be used to determine the number of pages included in each document. If no GROUPMAXPAGES value is specified, the default is 100 (pages). A new document is started when either the high level index changes or the GROUPMAXPAGES value is reached.

The indexes defined for the Content Manager OnDemand application group must be as follows:
First Index
Must be the high level index.
Second Index
Must be the start value for the GROUPRANGE or GROUPRANGE2 index by which the report is sorted within the first index.
Third Index
Must be the end value for the GROUPRANGE or GROUPRANGE2 index by which the report is sorted within the first index.
Additional indexes
Might be defined, but cannot be GROUPRANGE or GROUPRANGE2 indexes.

The following example lists typical indexing parameters and values for PDOC reports using TYPE=GROUPRANGE on INDEX2. Indexing parameters are specified on the Indexer Information page in the Content Manager OnDemand application.

The mask subparameter of the FIELD2 parameter in the following example instructs the indexer to look in columns 3 through 12 for a value that matches the mask. The first value found in a document is used as the start range value and stored in the first index field of the Application Group Data table. The last value found in a document is used as the end range value and stored in the second index field of the Application Group Data table.

The following example shows typical indexing parameters and values for PDOC reports that use TYPE=GROUPRANGE for INDEX2:
FILEFORMAT=RECORD,90
GROUPMAXPAGES=100
TRIGGER1=*,1,X'F1',(TYPE=GROUP)  /* 1 */
TRIGGER2=*,2,X'C2C1D5D2',(TYPE=GROUP)  /* BANK */
FIELD1=1,11,3,(TRIGGER=1,BASE=0)
FIELD2=*,*,10,(OFFSET=(3:12),MASK='##########',ORDER=BYROW)
FIELD3=0,83,8,(TRIGGER=1,BASE=0)
INDEX1=X'C2C1D5D26DC2D9C1D5C3C8',FIELD1,(TYPE=GROUP,BREAK=YES)  /* BANK_BRANCH */
INDEX2=X'D3D6C1D56DD5E4D4C2C5D9',FIELD2,(TYPE=GROUPRANGE)  /* LOAN_NUMBER */
INDEX3=X'D7D6E2E3C9D5C76DC4C1E3C5',FIELD3,(TYPE=GROUP,BREAK=NO)  /* POSTING_DATE */
INDEXSTYLE=PDOC

The following example lists typical indexing parameters and values for PDOC reports using TYPE=GROUPRANGE2 on INDEX2. Indexing parameters are specified on the Indexer Information page in the Content Manager OnDemand application.

In this example, FIELD2 is used to locate the start range value. FIELD2 uses TRIGGER1. In this case, when a skip-to-channel-1 is found, then go down eight lines (to line number 9 of this page) and extract ten positions starting at column 3.

FIELD3 is used to locate the end range value. FIELD3 uses TRIGGER3. In this case, start at the bottom of the page and look up in column 46 for a period (x'4B'). When found, stay on that line and extract ten positions starting at column 3.

The following example shows typical indexing parameters and values for PDOC reports using TYPE=GROUPRANGE2 for INDEX2:
FILEFORMAT=RECORD,90
GROUPMAXPAGES=100
TRIGGER1=*,1,X'F1',(TYPE=GROUP) /* 1 */
TRIGGER2=*,2,X'C2C1D5D2',(TYPE=GROUP) /* BANK */
TRIGGER3=*,46,X'4B',(TYPE=FLOAT)  /* . */
FIELD1=1,11,3,(TRIGGER=1,BASE=0)
FIELD2=8,3,10,(TRIGGER=1,BASE=0)
FIELD3=0,3,10,(TRIGGER=3,BASE=0)
FIELD4=0,83,8,(TRIGGER=1,BASE=0)
INDEX1=X'C2C1D5D26DC2D9C1D5C3C8',FIELD1,(TYPE=GROUP,BREAK=YES) /* BANK_BRANCH */
INDEX2=X'D3D6C1D56DD5E4D4C2C5D9',FIELD2,FIELD3,(TYPE=GROUPRANGE2) /* LOAN_NUMBER */
INDEX3=X'D7D6E2E3C9D5C76DC4C1E3C5',FIELD4,(TYPE=GROUP,BREAK=NO) /* POSTING_DATE */
INDEXSTYLE=PDOC

The following example lists another set of typical indexing parameters and values for PDOC reports using TYPE=GROUPRANGE2 on INDEX2. Indexing parameters are specified on the Indexer Information page in the Content Manager OnDemand application.

In this example, FIELD2 is used to locate both the start and end range values. FILED2 uses TRIGGER3. For the start range value, start at the top of the page and look down in column 46 for a period (x'4B'). When found, stay on that line and extract ten positions starting at column 3.

For the end range value, start at the bottom of the page and look up in column 46 for a period (x'4B'). When found, stay on that line and extract ten positions starting at column 3.

The following example shows typical indexing parameters and values for PDOC reports using TYPE=GROUPRANGE2 for INDEX2:
FILEFORMAT=RECORD,90
GROUPMAXPAGES=100
TRIGGER1=*,1,X'F1',(TYPE=GROUP) /* 1 */
TRIGGER2=*,2,X'C2C1D5D2',(TYPE=GROUP) /* BANK */
TRIGGER3=*,46,X'4B',(TYPE=FLOAT)  /* . */
FIELD1=1,11,3,(TRIGGER=1,BASE=0)
FIELD2=0,3,10,(TRIGGER=3,BASE=0)
FIELD3=0,83,8,(TRIGGER=1,BASE=0)
INDEX1=X'C2C1D5D26DC2D9C1D5C3C8',FIELD1,(TYPE=GROUP,BREAK=YES) /* BANK_BRANCH */
INDEX2=X'D3D6C1D56DD5E4D4C2C5D9',FIELD2,(TYPE=GROUPRANGE2) /* LOAN_NUMBER */
INDEX3=X'D7D6E2E3C9D5C76DC4C1E3C5',FIELD3,(TYPE=GROUP,BREAK=NO) /* POSTING_DATE */
INDEXSTYLE=PDOC

The GROUPRANGE or GROUPRANGE2 specification for INDEX2 will cause the beginning loan number value to be stored in the second application group index field, while the ending loan number value gets stored in the third application group index field. INDEX3 (posting date from preceding information) gets stored in the fourth application group index field.