The following ARSDOC examples include guidance on how to add a user ID to the stash file. For example, to add the user ID "sysadmin" to the stash file, enter the following command:
arsstash -a 1 -s stash_file -u sysadmin
where: arsdoc get -h ARCHIVE -u sysadmin -f "Student Information" -o student
-c -S 1/1/97,12/31/97 -i "WHERE student='001200340056'" -v
The
ARSDOC program saves all of the documents that match the query in
the following output file: student arsdoc get -h ARCHIVE -u sysadmin -F parmfile -v
The
parameter file contains two queries: [-f "Student Information"] [-S 1/1/97,12/31/97] [-o (student)(type)] \
[-i "WHERE student='123420010056' AND type='B' OR type='G' OR type='T'"]
[-f "Student Information"] [-S 1/1/97,12/31/97] [-o (student)(type)] \
[-i "WHERE student='123450011917' AND type='B' OR type='G' OR type='T'"]
Assuming
that documents exist for all of the specified types, the ARSDOC program
creates the following output files: arsdoc get -h ARCHIVE -u sysadmin -f "Student Information"
-a -c -g -o student -q "3rd yr students GPA>3.5" -N -v
The
number of output files that the ARSDOC program generates is a factor
of the number of application groups queried, the applications contained
in the application groups, whether the data is AFP and if so, the
versions of resource groups in each application. At a minimum, for
AFP data with one version of the resource group and one application
group, the ARSDOC program generates three output files. For example: arsdoc query -h ARCHIVE -u sysadmin -f "Student Information" -o query1.out -H
-S 1/1/97,12/31/97 -i "WHERE student='0012-0034-0056' AND type='B' OR
type='G' OR type='T'" -v
arsdoc query -h ARCHIVE -u sysadmin -F parmfile -v
The
parameter file contains three queries: [-f "Student Information"] [-i "WHERE type='B'"] [-o query2.out] \
[-S 1/1/97,12/31/97] [-H] [-N (student)(id)(p_date)]
[-f "Student Information"] [-i "WHERE type='G'"] [-o query3.out] \
[-S 1/1/97,12/31/97] [-H] [-N (student)(id)(p_date)]
[-f "Student Information"] [-i "WHERE type='T'"] [-o query4.out] \
[-S 1/1/97,12/31/97] [-H] [-N (student)(id)(p_date)]
arsdoc query -h ARCHIVE -u sysadmin -i "where Date_Taken BETWEEN 9863 AND 11531"
-G load-scanned-images-jpeg -o jpeg -v
arsdoc add -h ARCHIVE -u sysadmin -o /newdata/crd.dat -n "crd_date=01/21/98"
-n "account='000-000-000'" -n balance=123.45 -n "name='John Watpole'"
-f "Credit Card Statements" -g CRD -a CRD -v
arsdoc update -h ARCHIVE -u sysadmin -i "where account='000-000-000' and
name='John Watpole'" -n "balance=0.00" -S 1/1/97,12/31/97 -f
"Credit Card Statements" -g CRD -v
arsdoc delete -h ARCHIVE -u sysadmin -i "where account='000-000-000' and
name='John Watpole'" -f "Credit Card Statements" -S 1/1/97,12/31/97
-v
arsdoc print -h ARCHIVE -u sysadmin -P
svrprt1 -i "where account='000-000-000' and name='John Watpole'"
-f "Credit Card Statements" -S 1/1/97,12/31/97 -v
arsdoc add -h ARCHIVE -u sysadmin -i "where sdate=10005 and account='000-000-000'
and name='Joe Smith'" -n "sdate=5/23/97" -n "account=000-000-000" -n
"name='Sally Smith'" -f "Credit Card Statements" -S 1/1/97,6/31/97 -v
arsdoc query -h ARCHIVE -u sysadmin -x 19867-025-0-3FAA-10136-10136
-f load-scanned-images -q query -o out -v
arsdoc query -h ARCHIVE -u sysadmin -x 19867-025-0-3FAA-10136-10136
-i "where Date_Taken BETWEEN 9863 AND 11531" -G load-scanned-images-jpeg
-o jpeg -v
arsdoc query -h ARCHIVE -u sysadmin -x 19867-025-0-3FAA-10136-10136
-f load_scanned-images -q query -G load-scanned-images-jpeg -o jpeg -v
arsdoc get -h ARCHIVE -u sysadmin -X 19867-025-0-3FAA-10136-10136
-G load-scanned-images-jpeg -o jpeg -v
arsdoc get -u oduser -p passwd -h odserver -f "CRD" -q named_query
-o loaddata -a -g -c -N -A 0 -v
03/10/2004 10:32:12: Starting arsdoc. Version: 9.5.0.0
03/10/2004 10:32:14: arsdoc get -h ARCHIVE -u sysadmin -f CRD -q named_query -o loaddata -a -g -c -N -A 0 -v
03/10/2004 10:32:14: Attempting login for userid ’sysadmin’ on server ’ARCHIVE’ ...
03/10/2004 10:32:20: Login successful
03/10/2004 10:32:20: Searching for folder 'CRD' ...
03/10/2004 10:32:27: Search successful
03/10/2004 10:32:27: Searching for documents in 'CRD' ...
03/10/2004 10:32:28: Querying database with SQL string 'where account = '000-000-000''
03/10/2004 10:32:56: Search successful
03/10/2004 10:32:56: 1 document(s) have been queried. Retrieving 1 document(s).
03/10/2004 10:34:05: (1): Retrieving document for userid 'oduser' ...
03/10/2004 10:34:05: Document successfully retrieved and stored in file 'loaddata.2.CRD.CRD.out'
03/10/2004 10:34:15: Writing generic indexer file(s).
03/10/2004 10:34:46: '1' annotations were written to file 'loaddata.2.CRD.CRD.ann'
03/10/2004 10:34:46: A total of 1 annotations were written to file 'loaddata.2.CRD.CRD.ann'
03/10/2004 10:34:53: Generic indexer file 'loaddata.2.CRD.CRD.ind' has been successfully created.
03/10/2004 10:34:54: arsdoc completed.
arsdoc print -h ARCHIVE -u sysadmin -i "where account = '000-000-000'"
-f "Credit Card Statements" -P odprinter -B balance -v.
03/10/2004 10:32:12: Starting arsdoc. Version: 9.5.0.0
03/10/2004 10:32:14: arsdoc get -h ARCHIVE -u sysadmin -f CRD -Q SQL-filename -o loaddata -a -g -c -N -v
03/10/2004 10:32:14: Attempting login for userid ’sysadmin’ on server ’ARCHIVE’ ...
03/10/2004 10:32:20: Login successful
03/10/2004 10:32:20: Searching for folder 'CRD' ...
03/10/2004 10:32:27: Search successful
03/10/2004 10:32:27: Searching for documents in 'CRD' ...
03/10/2004 10:32:28: Querying database with SQL string 'where account = '000-000-000''
03/10/2004 10:32:28: 1 document(s) matches the search criteria.'
03/10/2004 10:32:29: Search successful
03/10/2004 10:32:29: Searching for documents in 'CRD' ...
03/10/2004 10:32:30: Querying database with SQL string 'where account = '000-000-001''
03/10/2004 10:32:32: 1 document(s) matches the search criteria.'
03/10/2004 10:32:33: Search successful
03/10/2004 10:32:33: Searching for documents in 'CRD' ...
03/10/2004 10:32:34: Querying database with SQL string 'where account = '000-000-002''
03/10/2004 10:32:38: 1 document(s) matches the search criteria.'
03/10/2004 10:32:38: Search successful
03/10/2004 10:32:56: 3 document(s) have been queried. Retrieving 3 document(s).
03/10/2004 10:33:05: (1): Retrieving document for userid 'oduser' ...
03/10/2004 10:33:05: Document successfully retrieved and stored in file 'loaddata.2.CRD.CRD.out'
03/10/2004 10:33:07: (2): Retrieving document for userid od'user' ...
03/10/2004 10:33:10: Document successfully retrieved and stored in file 'loaddata.2.CRD.CRD.out'
03/10/2004 10:33:12: (3): Retrieving document for userid 'oduser' ...
03/10/2004 10:33:15: Document successfully retrieved and stored in file 'loaddata.2.CRD.CRD.out'
03/10/2004 10:33:24: arsdoc completed.
arsdoc query -h ARCHIVE -u sysadmin -i query_string -f folder
-v -U "John Smith"
arsdoc query -h ARCHIVE -u sysadmin -i query_string -f folder
-v -U "Mark Jones"
arsdoc query -h ARCHIVE -u sysadmin
-i query_string -f folder
-v -U "Kathy Brown"
In the system log, the user ID column
then contains:SYSADMIN-JOHN SMITH
SYSADMIN-MARK JONES
SYSADMIN-KATHY BROWN
arsdoc hold_add -h ARCHIVE -u sysadmin -l hold_audit -f
"Monthly Status Reports" -i "where code='TX' and sdate=14117" -v
arsdoc hold_release -h ARCHIVE -u sysadmin -l hold_audit -f
"Monthly Status Reports" -i "where code='TX' and sdate=14117" -v
arsdoc cfsod_fed -h ARCHIVE -u sysadmin -f
"Monthly Status Reports" -i "where code='TX' and sdate=14117" -v
arsdoc fti_add -h ARCHIVE -u sysadmin -f
"Monthly Status Reports" -i "where code='TX' and sdate=14117" -v