rmstdlist

Removes or displays standard list files based on the age of the file. This utility should be used by the HCL Workload Automation administrator to maintain the scheduling environment.

Syntax

rmstdlist -V | -U

rmstdlist [-p] [daysold]

Arguments

-V
Displays the command version and exits.
-U
Displays command usage information and exits.
-p
Displays the names of qualifying standard list file directories. No directories or files are removed. If you do not specify -p, the qualifying standard list files are removed.
daysold
The minimum age, in days, of standard list file directories to be displayed or removed. The default is 10 days.
Note: Because the list of directories and files shown or deleted using rmstdlist is produced based on the last time they were accessed, the dates shown in the list of directories could differ from the dates displayed in the list of files.

Syntax

As a rule, you should regularly remove standard list files somewhere between every 10-20 days. Larger backlogs may be harder to manage and, if the number of files becomes exceedingly large, you might be required to erase some of them manually before you can use rmstdlist again.

This problem might occur on AIX systems, particularly, because of a currently unresolved limitation with the rm -rf command. When rmstdlist fails because of this limitation, it does not display any errors other than exit code 126. If you would rather have the rm -rf error displayed, you can edit the rmstdlist script in the following way:
  1. Locate the script in the TWS_home/bin directory
  2. Find the line:
    rm -rf `cat /tmp/rm$$` 2> /dev/null
  3. Remove the redirection to /dev/null so that the line becomes:
    rm -rf `cat /tmp/rm$$` 

Examples

To display the names of standard list file directories that are more than 14 days old, run the following command:
rmstdlist -p 14
To remove all standard list files (and their directories) that are more than seven days old, run the following command:
rmstdlist 7