UPDATE function
Use to update document indexes.
Note: The Update Document (UPDDOCOND) command includes
most of the capabilities of the ARSDOC UPDATE function but provides a native IBM i command
interface and help text.
Important: You must have a locale set in your user profile before issuing this API. See
the topic titled "Defining a locale" in the IBM® Content Manager OnDemand for
i Planning and Installation Guide for
important details.
You
must name the application group to update and specify one or
more application group fields and their values. To identify the documents that you want to
update, you can use the following parameters to query the database:
- SQL query (-i)
- hold name (-l)
- public named query (-n)
- text search string (-t or -T)
- load ID (-x or -X)
If you use an SQL query, it must contain clauses, database field names, index values, and operators. The UPDATE function updates all of the rows that match the query. It does not change the actual document data.
When
you use the parameter file option, you must specify the -F, -h, -u, -U,
and -v parameters on the command line. All other
parameters must be specified in the parameter file. The following
shows the syntax of the UPDATE function when you use the parameter
file option:
The syntax of the parameter file for
the UPDATE function is: