Examples

The following ARSLOAD examples include guidance on how to add a user ID to the stash file. For example, to add the user ID "sysadmload" to the stash file as a default user ID for ARSLOAD, enter the following command:

arsstash -a 3 -s stash_file -u sysadmload
where:
-a 3
Adds the user ID for the ARSLOAD command.
-s stash_file
Name of the stash file.
-u sysadmload
User ID that will be used to logon to the server when ARSLOAD is run without specifying a user ID and password (as in, -u userID and -p password are not provided on the command line).

To add "bob" to the stash file, enter the following command:

arsstash -a 1 -s stash_file -u bob
where:
-a 1
Adds the user ID to the stash file.
-s stash_file
Name of the stash file.
-u bob
User ID that is added to the stash file (if -u bob is used on command line, -p is not required since the password is obtained from the stash file.
  1. The following example shows how to run the ARSLOAD program to check the specified directory for input files to process. The input files must have a file type extension of .ARD or .PDF. The ARSLOAD program stores temporary work files in the location specified by the -c parameter. In this example, the ARSLOAD program uses the FORM part of the file name to determine the application group to load and the application group contains only one application; the ARSLOAD program logs on to the system and accesses the application group with the user ID and password stored in the encrypted password file (stash file).
    arsload -h ARCHIVE -c /arsacif/acif1 -d /arsacif/acif2
    For example, if "sysadmload" was the user added to the stash file for arsload, arsload would use the user ID "sysadmload" to logon to the server with the password from the stash file.
  2. The following example shows how to run the ARSLOAD program to check the specified directory for input files to process. The input files must have a file type extension of .ARD or .PDF. The ARSLOAD program stores temporary work files in the location specified by the -c parameter. In this example, the ARSLOAD program uses the JOBNAME part of the file name to determine the application group to load and the DATASET part of the file name to determine the application to load; the ARSLOAD program logs on to the system and accesses the application group with the user ID and password stored in the encrypted password file (stash file).
    arsload -h ARCHIVE -c /arsacif/acif1 -d /arsacif/acif2 -A DATASET -G JOBNAME
    For example, if "sysadmload" was the user added to the stash file for arsload, arsload would use the user ID "sysadmload" to logon to the server with the password from the stash file.
  3. The following example shows how to run the ARSLOAD program to load the specified file into the specified application group. The ARSLOAD program logs on to the system and accesses the application group by using the user ID from the -u parameter and the password for user ID "bob" from the stash file.
        arsload -h ARCHIVE -g BILLS -u bob PO3510
    Note that the user ID "bob" would have to have been added to the stash file prior to running the ARSLOAD command.
  4. The following example shows how to run the ARSLOAD program to load several input files into the specified application group. The application group name contains an embedded blank character, and must be quoted. The ARSLOAD program logs on to the system and accesses the application group by using the user ID and password from the -u and -p parameters.
    arsload -h ARCHIVE -g "ABC Credit" -u bob RW7505 RW8505
    Note that the user ID "bob" would have to have been added to the stash file prior to running the ARSLOAD command.
  5. The following shows how to run the ARSLOAD program to load the specified file into the specified application group. The TCP/IP address of the IBM® Content Manager OnDemand library server is specified. This format of the command can be used to load input files from an object server and store the index data on the library server. The ARSLOAD program logs on to the system and accesses the application group by using the user ID and password from the stash file. Note that the stash file name must be specified with the -p option because a TCP/IP address is being provided rather than an instance name:
    arsload -h "9.99.111.222" -g BILLS -u bob -p stash_file ARSP0MST
    As a result, ARSLOAD will logon to the server using the user ID "bob" (the password for "bob" is from the stash file "stash_file").