ADD function
The ADD function can be used to add a new document and its associated index values to Content Manager OnDemand, or to add a new database row of index values that points to an existing document.
When adding a new document, you specify the folder, application group, application, and database fields and values. If you specify the -O parameter, then you do not have to specify all of the database fields; however, you must always specify fields related to date or time fields. When you specify the -O parameter, the ARSDOC program stores a default value in any database field that you omit. The default value for string fields is an empty (null) string. The default value for numeric fields is 0 (zero). Numeric fields include integer and decimal fields. When adding a new document, you also specify the input document by using the -o parameter.
- An SQL query that contains clauses, database field names, index values, and operators (-i)
- A hold name (-l)
- A public named query (-q)
- A text search string (-t or -T)
When you specify an SQL query, hold name, public named query, or text search string, you are creating a database row that points to an existing document that has been identified by the query. The row must be added to the application group and the application that contain the existing document. The application must be specified with the -a parameter. The application group must be specified with the -g parameter and must be one of the application groups that is referenced by the folder named with the -f parameter.
Storage management for the application group needs to be configured to use cache. Cache is required to allow the Content Manager OnDemand server to build a larger storage object and append to the data. Then this storage object can be migrated to an external storage manager, such as TSM or cloud storage.
