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 sysadminwhere: arsdoc get -h ARCHIVE -u sysadmin -f "Student Information"
-o student -c -S "2018-01-01,2018-12-31,%Y-%m-%d"
-i "WHERE student='0012003400563'" -vThe
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 -vThe
parameter file contains two queries: [-f "Student Information"] [-S "2018-01-01,2018-12-31,%Y-%m-%d"] [-o (student)(type)] \
[-i "WHERE student='123420010056' AND type='B' OR type='G' OR type='T'"]
[-f "Student Information"] [-S "2018-01-01,2018-12-31,%Y-%m-%d"] [-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 -vThe
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, if the name of the application group is "Student Information" and the name of the
application is "Transcripts": 000-000-000 that has been placed on hold for audit purposes. The required
document contains the text Baxter Bay Holdings.
arsdoc get -h ARCHIVE -u sysadmin -f "Credit Card Reports"
-S "2018-01-01,2018-12-31,%Y-%m-%d"
-i "where account = '000-000-000'" -l audit_hold
-t "Baxter Bay Holdings" -o outfile -v arsdoc query -h ARCHIVE -u sysadmin
-f "Student Information" -o query1.out -H -S "2018-01-01,2018-12-31,%Y-%m-%d"
-i "WHERE student='0012003400563' AND type='B' OR type='G' OR type='T'" -v arsdoc query -h ARCHIVE -u sysadmin -F parmfile -vThe
parameter file contains three queries: [-f "Student Information"] [-i "WHERE type='B'"] [-o query2.out] \
[-S "2018-01-01,2018-12-31,%Y-%m-%d"] [-H] [-N (student)(id)(p_date)]
[-f "Student Information"] [-i "WHERE type='G'"] [-o query3.out] \
[-S "2018-01-01,2018-12-31,%Y-%m-%d"] [-H] [-N (student)(id)(p_date)]
[-f "Student Information"] [-i "WHERE type='T'"] [-o query4.out] \
[-S "2018-01-01,2018-12-31,%Y-%m-%d"] [-H] [-N (student)(id)(p_date)] arsdoc query -h ARCHIVE -u sysadmin
-G "Bills" -f "Student Information"
-S "2018-01-01,2018-12-31,%Y-%m-%d"
-i "WHERE student='0012-0034-0056'" -v arsdoc add -h ARCHIVE -u sysadmin -o /newdata/crd.dat
-n "crd_date=2018-01-21" -n "account='000-000-000'" -n balance=123.45
-n "name='John Watpole'" -f "Credit Card Statements" -g CRD -a CRD -v123.45 to 0.00:
arsdoc update -h ARCHIVE -u sysadmin
-i "where account='000-000-000' and name='John Watpole'"
-n "balance=0.00" -S "2018-01-01,2018-12-31,%Y-%m-%d"
-f "Credit Card Statements" -g CRD -v1990-01-01 to 2018-12-31 for account number
000-000-000 in the Credit Card Statements application group, changing the account
number 000-000-000 to 100-000-000:
arsdoc bulk_update -h ARCHIVE -u sysadmin -g CRD
-i "where account='000-000-000'" -n "account=100-000-000"
-S "1990-01-01,2018-12-31,%Y-%m-%d" -v arsdoc delete -h ARCHIVE -u sysadmin
-i "where account='000-000-000' and name='John Watpole'"
-f "Credit Card Statements" -S "2018-01-01,2018-12-31,%Y-%m-%d" -v1990-01-01 to 2018-12-31 for account number
000-000-000 in the Credit Card Statements application
group. A maximum number of 100 documents will be deleted at one time,
regardless of the number of items that match the query. This method allows for the
deletions to be done in smaller batches, in a more controlled manner, by running the same ARSDOC
command multiple times: arsdoc bulk_delete -h ARCHIVE -u sysadmin -g CRD
-i "where account='000-000-000'"
-S "1990-01-01,2018-12-31,%Y-%m-%d" -L 100 -v arsdoc print -h ARCHIVE -u sysadmin -P svrprt1
-i "where account='000-000-000' and name='John Watpole'"
-f "Credit Card Statements" -S "2018-01-01,2018-12-31,%Y-%m-%d" -v000-000-000, date 2018-05-23, and account name Joe
Smith. You want to add a new index, but point to the existing statement. The new index uses
the same account number and date, but contains a different account name (for example, Sally
Smith). After adding the index, if a query is run with account name Joe
Smith or Sally Smith, the same bank statement will be retrieved. To add an
index for an existing document:
arsdoc add -h ARCHIVE -u sysadmin
-i "where sdate='2018-05-23' and account='000-000-000' and name='Joe Smith'"
-n "name='Sally Smith'"
-f "Credit Card Statements" -S "2018-01-01,2018-12-31,%Y-%m-%d" -v arsdoc query -h ARCHIVE -u sysadmin -f "Student Information"
-x 167332-2-0-8FAA-20181219000000-20181219000000-167333
-o outfile -v arsdoc query -h ARCHIVE -u sysadmin -G BILLS
-i "where student = '123420010056'"
-x 167332-2-0-8FAA-20181219000000-20181219000000-167333
-o outfile -v arsdoc get -h ARCHIVE -u sysadmin -G BILLS
-X 167332-2-0-8FAA-20181219000000-20181219000000-167333
-o outfile -v arsdoc get -h ARCHIVE -u sysadmin
-f "Credit Card Statements" -q named_query -o loaddata
-a -g -c -N -A 0 -v03/10/2018 10:32:12: Starting arsdoc. Version: 10.1.0.4 03/10/2018 10:32:14: arsdoc get -h ARCHIVE -u sysadmin -f "Credit Card Statements" -q named_query -o loaddata -a -g -c -N -A 0 -v 03/10/2018 10:32:14: Attempting login for userid ’sysadmin’ on server ’ARCHIVE’ ... 03/10/2018 10:32:20: Login successful 03/10/2018 10:32:20: Searching for folder 'Credit Card Statements' ... 03/10/2018 10:32:27: Search successful 03/10/2018 10:32:27: Searching for documents in 'Credit Card Statements' ... 03/10/2018 10:32:28: Querying database with SQL string 'where account = '000-000-000'' 03/10/2018 10:32:56: Search successful 03/10/2018 10:32:56: 1 document(s) have been queried. Retrieving 1 document(s). 03/10/2018 10:34:05: (1): Retrieving document for userid 'sysadmin' ... 03/10/2018 10:34:05: Document successfully retrieved and stored in file 'loaddata.2.CRD.CRD.out' 03/10/2018 10:34:15: Writing generic indexer file(s). 03/10/2018 10:34:46: '1' annotations were written to file 'loaddata.2.CRD.CRD.ann' 03/10/2018 10:34:46: A total of 1 annotations were written to file 'loaddata.2.CRD.CRD.ann' 03/10/2018 10:34:53: Generic indexer file 'loaddata.2.CRD.CRD.ind' has been successfully created. 03/10/2018 10:34:54: arsdoc completed.
arsdoc print -h ARCHIVE -u sysadmin
-i "where account = '000-000-000'" -f "Credit Card Statements"
-S "2018-01-01,2018-12-31,%Y-%m-%d"
-P odprinter -B balance -v arsdoc query -h ARCHIVE -u sysadmin -U "John Smith"
-i "where account='000-000-000'"
-f "Credit Card Statements"
-S "1990-01-01,2018-12-31,%Y-%m-%d" -v
arsdoc query -h ARCHIVE -u sysadmin -U "Mark Jones"
-i "where account='000-000-000'"
-f "Credit Card Statements"
-S "1990-01-01,2018-12-31,%Y-%m-%d" -v
arsdoc query -h ARCHIVE -u sysadmin -U "Kathy Brown"
-i "where account='000-000-000'"
-f "Credit Card Statements"
-S "1990-01-01,2018-12-31,%Y-%m-%d" -v 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 ODDAT_sdate='2018-08-10'"
-S "2018-01-01,2018-12-31,%Y-%m-%d" -v arsdoc hold_release -h ARCHIVE -u sysadmin
-l hold_audit -f "Monthly Status Reports"
-i "where code='TX' and ODDAT_sdate='2018-08-10'"
-S "2018-01-01,2018-12-31,%Y-%m-%d" -v arsdoc hold_release -h ARCHIVE -u sysadmin
-l IMPLIED_HOLD -f "Monthly Status Reports"
-i "where code='TX' and sdate='2018-08-10'" -v arsdoc cfsod_fed -h ARCHIVE -u sysadmin
-f "Monthly Status Reports"
-i "where code='TX' and ODDAT_sdate='2018-08-10'"
-S "2018-01-01,2018-12-31,%Y-%m-%d" -v arsdoc fti_add -h ARCHIVE -u sysadmin
-f "Monthly Status Reports"
-i "where code='TX' and ODDAT_sdate='2018-08-10'"
-S "2018-01-01,2018-12-31,%Y-%m-%d" -v arsdoc fti_release -h ARCHIVE -u sysadmin
-f "Monthly Status Reports"
-i "where code='TX' and ODDAT_sdate='2018-08-10'"
-S "2018-01-01,2018-12-31,%Y-%m-%d" -v arsdoc query -u sysadmin -h ARCHIVE -f "System Log"
-i "where ODDAT_time_stamp > '2015-01-01 12:50:00.000000' AND
userid like 'ODUSER%'" arsdoc query -u sysadmin -h ARCHIVE -f "System Log"
-i "WHERE ODDAT_time_stamp BETWEEN '2015-01-01 00:00:00.000000' AND
'2015-01-06 23:59:59.999999' AND
userid LIKE 'ODUSER%'" arsdoc query -u sysadmin -h ARCHIVE -f "System Log"
-i "WHERE ODDAT_time_stamp BETWEEN '2015-01-01 00:00:00.000000' AND
'2015-01-06 23:59:59.999999' AND userid LIKE 'ODUSER%'"
-S "2014-01-01 00:00:00.000000,2015-01-06 00:00:00.000000,
%Y-%m-%d %H:%M:%S.%F" arsdoc query -u sysadmin -h ARCHIVE -f "Credit Card Statements"
-i "2;ODDAT_crd_date,account;'2018-03-03','000-000-000';
where ODDAT_crd_date = ? and account = ?"
-S "2017-01-01,2018-04-30,%Y-%m-%d"