Remove Log Entries from JS (RMVLOGEJS)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Remove Log Entries from Job Scheduler (RMVLOGEJS) command allows you to clear the Advanced Job Scheduler log based on a date range that you specify.

Top

Parameters

Keyword Description Choices Notes
TYPE Type *ALL, *RUN, *SUBMIT, *MAINT, *EMAIL, *WORKFLOW Optional, Positional 1
SLTDATE Select dates Element list Optional
Element 1: From date Character value, *CURRENT, *BEGIN
Element 2: To date Character value, 180, *CURRENT, *END
Top

Type (TYPE)

Specifies the type of entries that you want to clear from the Advanced Job Scheduler log. Examples of types of entries are run, submit, maintenance and so on.

*ALL
Selects all log entries to clear within the specified date range.
*RUN
Selects only log entries that were logged during the run process to clear within the specified date range.
*SUBMIT
Selects only log entries that were logged during the submission process to clear within the specified date range.
*MAINT
Selects only log entries that were logged during the maintenance process to clear within the specified date range.
*EMAIL
Selects only log entries that were logged during the e-mail process to clear within the specified date range.
*WORKFLOW
Selects only log entries that were logged during Work Flow processing to clear within the specified date range.
Top

Select dates (SLTDATE)

Specifies the range of dates that you want to use when clearing the Advanced Job Scheduler log. The From date is the beginning point in the Advanced Job Scheduler log that is cleared and the To date is the ending date.

Element 1: From date

*BEGIN
Uses the earliest Advanced Job Scheduler log date in the file as the beginning date in the date range.
*CURRENT
Uses the current date as the beginning date in the date range.
date
Specify the date in system format with or without date separators, such as 12/01/01 or 120101, that you want to be the beginning date of the date range.
number
Specify a number to represent the number of days before the current day that you want to be the beginning of the date range. An example would be 10. If today's date were 3/12/01, the From date for the Advanced Job Scheduler log would be 3/2/01.

Element 2: To date

180
The number of days of log entries that remain is 180.
*CURRENT
Uses the current date as the ending date of the date range.
*END
Uses the latest date in the Advanced Job Scheduler log to use as the ending date in the date range.
date
Specify the date in system format with or without date separators, such as 12/01/01 or 120101, that you want to be the ending date of the date range.
number
Specify a number to represent the number of days before the current day that you want to be the end of the date range. An example would be 10. If today's date were 3/22/01, the To date for the Advanced Job Scheduler log would be 3/12/01.
Top

Examples

RMVLOGEJS   TYPE(*ALL)  SLTDATE('3/12/99' '4/12/99')

This command removes all log entries for the period March 12, 1999 to April 12, 1999. SLTDATE is expressed in mm/dd/yy format in this example.

Top

Error messages

Unknown
Top