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. 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 (-q)
  • 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 stdout. You can also choose to write the output to a file. To retrieve documents in a sorted order, you must specify the -n parameter. The sorted order is determined by using the Sort Order parameter that is located on the Field Information tab of the folder definition.

Read syntax diagramSkip visual syntax diagramarsdoc get-a[-Avalue]-c-ddirectory-ffolder-g-GapplGroup-hinstance -isqlQuery-lholdname-qnamedQuery-tsearch_string-Tsearch_string-Lmax_docs-n-N-oname-ppassword-P-QSQLqueryfile-sseconds-Sstartdate,enddate,format-uuserid-Uuser_alias-v-xloadId-XloadId-1trace_file-2level
When you use the parameter file option, the only parameters that can be specified on the command line are -F, -h, -s, -u, -U, -v, -1, and -2. The -u and -p parameters can be specified in the parameter file instead. If specified, a logon will be performed for the retrieval request (if not already logged on). 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:
Read syntax diagramSkip visual syntax diagram arsdoc get -F parm_file -h instance -ppassword-uuserid-Uuser_alias-sseconds -v -1trace_file-2level
The syntax of the parameter file for the GET function is:
Read syntax diagramSkip visual syntax diagram[-a][-Avalue][-c][-ddirectory] [ -f folder ] [-g][-GapplGroup][-isqlQuery][-lholdname][-qnamedQuery][-tsearch_string][-Tsearch_string][-Lmax_docs][-n][-N] [ -o name ] [-P][-QSQLqueryfile][-Sstartdate,enddate,format][-xloadId][-XloadID]