IBM for i, Version 7.1

Indexing parameters

Indexing parameters can contain indexing, conversion, and resource collection parameters, options, and values. For most reports, Content Manager OnDemand requires three indexing parameters to extract or generate index data:
Content Manager OnDemand creates a new group and extracts new index values when one or more of the fixed group index values change, or the GROUPMAXPAGES value is reached.
Figure 1. Indexing a report
  ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9
01                                                                       Page 0001
1
2                                        Jack Straw
3                                        4 Buxanchange Way
4                                        Wichitaw KS 99999-9999
5
6                                        Statement Date: 06/15/07
7                                        Account Number: 1234-5678-9876-0000
8
9                                        Balance: $2,984.17
The following indexing parameters can be used to generate index data for the report shown in Figure 1. The TRIGGER definitions tell Content Manager OnDemand how to identify the beginning of a group in the input. Content Manager OnDemand requires two TRIGGER definitions to identify the beginning of a group (statement) in the sample file. For example: Together, the triggers uniquely identify the start of a statement in the report.
The FIELD definitions determine the location of the index values in a statement. Fields are based on the location of trigger records. For example: An INDEX definition identifies the attribute name of the index field. Indexes are based on one or more field definitions. For example: The following table lists the maximum values for certain indexing attributes:
Start of change
Indexing attribute Maximum value
Maximum number of lines per spooled file page (greater than printer file maximum due to allowance for overprint lines) 510
Maximum page width (positions per line) 378
Maximum number of triggers per page (for documents not using multi-key) 16
Maximum number of index values per page (for documents not using multi-key) 128
Maximum number of fields per page (for documents not using multi-key) 128
Maximum number of triggers per page (for multi-key documents) 512
Maximum number of index values per page (for multi-key documents) 1024
Maximum number of fields per page (for multi-key documents) 1024
Maximum number of index values per group (document) (for multi-key documents) 9999
Maximum size of an AFP resource segment 16,000,000 bytes
Maximum size of any single AFP resource 16,000,000 bytes
End of change
Important: For the Maximum page width indexing attribute, when using the Print Text for OnDemand (PRTTXTOND) command with STMF(*NONE), which directs the output to a spooled file instead of a stream file, the maximum page width is 372.


Feedback

Last updated: April 2013
os400inparm.htm

© Copyright IBM Corporation 2014.
This information center is powered by Eclipse technology. (http://www.eclipse.org)