Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC) Threadsafe: No |
Parameters Examples Error messages |
The Work with Job Logs (WRKJOBLOG) command displays a list of job logs that match the specified selection criteria.
Usage notes:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
JOBLOGSTT | Job log state | Values (up to 2 repetitions): *PENDING, *SPOOLED | Optional, Positional 1 |
PERIOD | Time period | Element list | Optional |
Element 1: Start time and date | Element list | ||
Element 1: Beginning time | Time, *AVAIL | ||
Element 2: Beginning date | Date, *CURRENT, *BEGIN | ||
Element 2: End time and date | Element list | ||
Element 1: Ending time | Time, *AVAIL | ||
Element 2: Ending date | Date, *CURRENT, *END | ||
JOB | Job name | Qualified job name | Optional |
Qualifier 1: Job name | Generic name, name, *ALL | ||
Qualifier 2: User | Generic name, name, *ALL | ||
Qualifier 3: Number | 000000-999999, *ALL |
Top |
Specifies the state of the job log for selecting which job logs are shown. A maximum of two values can be specified for this parameter.
Top |
Specifies the period of time for selecting which job logs are shown. For pending job logs and spooled job logs which are associated with a job, this is the completion time of the job. For spooled job logs that are detached from the job, this is the creation date and time of the QPJOBLOG spooled file. This parameter contains two element lists of two elements each. A value or *N must be specified for an element if a subsequent element value will be specified in order to maintain its position in the parameter value sequence.
Element 1: Start time and date
Element 1: Starting time
One of the following is used to specify the starting time at which or after which the job completed or the spooled file was created. Job logs for jobs that ended before the specified time and date are not shown. Detached job logs that were created before the specified time and date are not shown.
Element 2: Starting date
One of the following is used to specify the starting date on which or after which the job completed or the spooled file was created. Job logs for jobs that ended before the specified time and date are not shown. Detached job logs that were created before the specified time and date are not shown.
Element 2: End time and date
Element 1: Ending time
One of the following is used to specify the ending time before which the job completed or the spooled file was created. Job logs for jobs that ended after the specified time and date are not shown. Detached job logs that were created after the specified time and date are not shown.
Element 2: Ending date
One of the following is used to specify the ending date before which the job completed or the spooled file was created. Job logs for jobs that ended after the specified time and date are not shown. Detached job logs that were created after the specified time and date are not shown.
Top |
Specifies the qualified job names of jobs whose job logs are to be included in the list.
Qualifier 1: Job name
Qualifier 2: User
Qualifier 3: Number
Top |
Example 1: Showing All Pending Job Logs
WRKJOBLOG
This command displays the Work with Job Logs panel, showing a list of all pending job logs for jobs that ended on today's date.
Example 2: Showing All Spooled Job Logs With a Generic Job
WRKJOBLOG JOBLOGSTT(*SPOOLED) JOB(*ALL/*ALL/QPADEV*)
This command displays the Work with Job Logs panel, showing a list of all spooled job logs created on today's date for all jobs whose simple job name starts with 'QPADEV'.
Example 3: Showing All Pending and Spooled Job Logs For a Specified Period
WRKJOBLOG JOBLOGSTT(*PENDING *SPOOLED) PERIOD((*AVAIL 11212005) (*AVAIL 11252005))
This command displays the Work with Job Logs panel, showing a list of all pending job logs for jobs that ended during the specified 5 day period, and all spooled job logs that were created during the specified 5 day period.
Top |
Top |