Examples
The following ARSRPT examples use the -p parameter with the name of a
stash file that contains encrypted passwords rather than specifying the
-p parameter with a password on the command line. For
example, -p ars.stash
as shown in the examples points to a file
named ars.stash
that is located in the current directory. You can
also provide the full path and file name of the stash file if you prefer. The user
ID that is specified by the -u parameter must be added to the
stash file by using the ARSSTASH program prior to running these examples. If you
prefer not to use a stash file, you can specify the -p
parameter with a password on the command line instead.
- If you run the following command:
You will produce these files:arsrpt -u sysadmin -h ARCHIVE -o outfile -t 2017-10-31
outfile.arsrpt.20171031.out outfile.arsrpt.20171031.xml
- If you run the following command:
You will produce these files:arsrpt -u sysadmin -h ARCHIVE -o outfile -t 10.31.2017 -f %m.%d.%Y
outfile.arsrpt.20171031.out outfile.arsrpt.20171031.xml
- If you run the following command:
You will produce this file:arsrpt -u sysadmin -h ARCHIVE -o outfile -t 2017-10-31 -x 1
outfile.arsrpt.20171031.out
- If you run the following command:
You will produce this file:arsrpt -u sysadmin -h ARCHIVE -o outfile -t 2017-10-31 -x 2
outfile.arsrpt.20171031.xml
- For a detailed example of how to generate a monthly report showing loads by data type, see https://www.ibm.com/support/pages/node/610297.