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.

  1. If you run the following command:
        arsrpt -u sysadmin -h ARCHIVE -o outfile -t 2017-10-31
    You will produce these files:
        outfile.arsrpt.20171031.out
        outfile.arsrpt.20171031.xml
  2. If you run the following command:
        arsrpt -u sysadmin -h ARCHIVE -o outfile -t 10.31.2017 -f %m.%d.%Y
    You will produce these files:
        outfile.arsrpt.20171031.out
        outfile.arsrpt.20171031.xml
  3. If you run the following command:
        arsrpt -u sysadmin -h ARCHIVE -o outfile -t 2017-10-31 -x 1
    You will produce this file:
        outfile.arsrpt.20171031.out
  4. If you run the following command:
        arsrpt -u sysadmin -h ARCHIVE -o outfile -t 2017-10-31 -x 2
    You will produce this file:
        outfile.arsrpt.20171031.xml
  5. 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.