GET function
Use to retrieve documents and resources from the system. The GET function can also
generate and save generic index data for the documents that match the query.
Note: The Retrieve Document (RTVDOCOND) command includes
most of the capabilities of the ARSDOC GET function but provides a native IBM i command
interface and help text.
You must identify the
name of the IBM® Content Manager OnDemand library server. You specify the application
group or folder that you want to search. 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. By default, the ARSDOC program sends a copy of the documents that match the query to the display (interactive) or the job log (batch). You can also choose to write the output to a file. To retrieve documents in a sorted order, you must specify the -n parameter.
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
diagram shows the syntax of the GET function when you use the parameter
file option:
The syntax of the parameter file for
the GET function is: