IBM for i, Version 7.1

Assigning default index values

You can create a Content Manager OnDemand application definition with an index field that does not always exist on the print page. If a value is not found for that field during indexing (in other words, if only blanks are found or the field location does not exist on the particular print page), then the DEFAULT keyword is used to determine the default value to use. The DEFAULT keyword can be placed on the FIELD indexer parameter line of the indexer parameters for a particular application definition.

The DEFAULT keyword can be specified in one of two ways. The first method allows you to specify an actual value (given in alphanumeric or hex format). The second method allows you to use the default value that you have specified on the Load Information tab of the Content Manager OnDemand application definition and index propagation (described below).

Examples of the first method:

DEFAULT='your_Value' (such as DEFAULT='ABC')

or

DEFAULT=x'your_Hex' (such as DEFAULT=x'C1C2C3')

Examples of the second method:

DEFAULT='_*USELOADDEFAULTORPROPAGATION'

or

DEFAULT=x'6D5CE4E2C5D3D6C1C4C4C5C6C1E4D3E3D6D9D7D9D6D7C1C7C1E3C9D6D55C6D' (In this second case, the hex value specified is the hexadecimal representation of the character string _*USELOADDEFAULTORPROPAGATION*_.)

The second method (using _*USELOADDEFAULTORPROPAGATION*_ or its hexadecimal representation) allows the load process to assign the default value from the Load Information tab of the application definition or for propagation to occur. To have the load process assign a default from the Load Information tab, you must specify one by using the Content Manager OnDemand Administrator Client. If you have not specified a default, propagation occurs. Propagation is the process of carrying a value over from its previously found value. This can be useful but can also have unintended results. For example, if the field was a customer number, the value for customer number is carried from the previous document if one was not found for the current document. This might not be what you intend to happen. Exercise caution when using this second method, as propagation can occur.



Feedback

Last updated: April 2013
os400asdefinval.htm

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