When tracing is enabled, tracing files are created in the trace subdirectory. This command is normally used to remove the old trace files and temporary files. For more details, refer to Tracing.
The command will check that the instance path is valid by checking for the existence of following subdirectories.
When you select the option to Clear the Java Service Manager, you will be prompted to enter the following:
INSTANCE
The instance defaults to a value of *DEFAULT. This is the recommended value. The default instance is defined in the JSMMGRDTA data area at position 1 to 50.
TRACEDIR
The option defaults to a value of *YES. Valid values are *YES, *NO.
A value of *YES will remove files and subdirectories in the trace directory.
Refer to the KEEP keyword for information about selecting files to keep.
TEMPDIR
The option defaults to a value of *YES. Valid values are *YES, *NO.
A value of *YES will remove all files and subdirectories in the temp directory.
Do not clear the temp directory while JSM services are running, as any temporary files used by the services will be deleted.
Use the value of *NO when clearing trace files from a running JSM instance.
KEEP
The option defaults to a value of 0. Valid values are in the range 0 to 99.
A value of 0 means no files are kept and all files and subdirectories are deleted.
A value of 1 means that only today's files are kept.
A value of 2 means that, today's and yesterday's files are kept.