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.

Read syntax diagramSkip visual syntax diagramarsdoc update-ffolder-gapplGroup-GapplGroup-hinstance -isqlQueryfp-lholdname-qnamedQuery-tsearch_string-Tsearch_string-xloadID-XloadID-ndbfield=value-ppassword-Sstartdate,enddate,format-uuserid-Uuser_alias-v-1trace_file-2level
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:
Read syntax diagramSkip visual syntax diagramarsdoc update-Fparm_file -hinstance -ppassword-uuserid-v-1trace_file-2level
The syntax of the parameter file for the UPDATE function is:
Read syntax diagramSkip visual syntax diagram[-ffolder ][-gapplGroup-GapplGroup][-isqlQuery][-lholdname][-qnamedQuery][-tsearch_string][-Tsearch_string][-xloadID][-XloadID][-ndbfield=value][-Sstartdate,enddate,format]