Remove Log Entries from JS (RMVLOGEJS)

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

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

Type (TYPE)

Specifies the type of entries that you want to clear from the IBM Advanced Job Scheduler for i 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.

Select dates (SLTDATE)

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

Element 1: From date

*BEGIN
Uses the earliest IBM Advanced Job Scheduler for i 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/09 or 120109, 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/09, the From date for the IBM Advanced Job Scheduler for i log would be 3/2/09.

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 IBM Advanced Job Scheduler for i 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/09 or 120109, 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/09, the To date for the IBM Advanced Job Scheduler for i log would be 3/12/09.

Examples

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

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

Error messages

Unknown