A control statement specified in the DD statement SYSIN for the event log output tool (RSLOGCP) contains a RANGE control statement, which specifies the time, and SELECT control statements, which specify the job names.
If the DD statement SYSIN is not specified or if no control statement exists, all logs for the system logger service will be output from the log stream to a dataset.
Format of the RANGE control statement
RANGE{
STARTTIME(yyyy/mm/dd[,hh:mm:ss]) ENDTIME(yyyy/mm/dd[,hh:mm:ss])
| STARTTIME(yyyy/mm/dd[,hh:mm:ss])
| ENDTIME(yyyy/mm/dd[,hh:mm:ss])}
RANGE control statement operands
- STARTTIME(yyyy/mm/dd[,hh:mm:ss])
- ~<<1900/01/01,00:00:00>><<if hh:mm:ss is omitted, 00:00:00>>
-
Use the local time to specify the start date and time of the log to be output.
- ENDTIME(yyyy/mm/dd[,hh:mm:ss])
- ~<<2042/09/17,23:53:47>><<if hh:mm:ss is omitted, 23:59:59>>
-
Use the local time to specify the end date and time of the log to be output.
The RANGE control statement can be specified only once at the beginning of the first control statement line.
Format of the SELECT control statement
SELECT COND(JOBNAME,EQ,value)
SELECT control statement operands
- COND(JOBNAME,EQ,value) ~ <8 or fewer alphanumeric characters>
-
Specify the job name as a condition of the log to be output from the log stream to a dataset. Enclose the specified value in quotation marks (').
You can specify a maximum of 100 lines of SELECT control statements. If multiple lines are specified, all logs that match the control statements will be output from the log stream to a dataset.
Coding of the RANGE and SELECT control statements
-
A line beginning with an asterisk (*) is treated as a comment line.
-
Columns after the 73rd column in a control statement line are ignored.
-
Each control statement must be completely specified on one line. A control statement cannot extend over two or more lines.
Control statement examples
To output the logs with acquisition dates in the range from 2013/03/24 00:00 to 2013/03/24 23:59, specify as follows.
RANGE STARTTIME(2013/03/24,00:00:00) ENDTIME(2013/03/24,23:59:59)
To output the logs with acquisition dates in the range from 2013/03/24 00:00 to 2013/03/24 23:59 and with the job names USER01T or USER01, specify as follows.
RANGE STARTTIME(2013/03/24,00:00:00) ENDTIME(2013/03/24,23:59:59) SELECT COND(JOBNAME,EQ,'USER01T') SELECT COND(JOBNAME,EQ,'USER01')