The FROM/TO subcommand options specify the range of record timestamps.
These subcommand options are used to specify the range of record timestamps that OMEGAMON® XE for DB2® PE processes.
These options are used with the GLOBAL command and the FILE, REDUCE, REPORT, and TRACE subcommands.
FROM/TO block: |----+-----------------------+--+---------------------+---------| '-FROM--| Date & Time |-' '-TO--| Date & Time |-' Date & Time: |--(-+-date,time-+-)--------------------------------------------| +-date------+ '-,time-----'
OMEGAMON XE for DB2 PE assumes |that the year value (yy) lies between the system-defined date |minus 95 years and the system-defined date plus four years.
| |You |can change the way dates are specified by using DATEFORMAT. For more |information, see DATEFORMAT subcommand option.
The date and time variables can be used in various combinations and can also inherit values specified with the GLOBAL command.The table below describes the assumed defaults if either of the options or values is not explicitly specified.
| Subcommand option | Default |
|---|---|
| FROM(date,time) TO(,time) | If the TO date is not specified, the FROM date is assumed. |
| FROM(,time) TO(date,time) | IF the FROM date is not specified, the TO date is assumed. |
| FROM(date) TO(date) | If the FROM time is not specified,
00:00:00.00 is assumed.
If the TO time is not specified, 23:59:59.99 is assumed. |
| FROM(,time) TO(,time) | If dates are not specified, all records
that comply with the times are processed; the date of records are
ignored.
REQUESTED ALL DATES is printed on reports and traces in place of REQUESTED FROM. |
| FROM(,time) | If only the FROM time is specified,
23:59:59.99 is used for the TO time. All records with a timestamp
between the FROM time and 23:59:59.99 are processed; the dates of
records are ignored.
REQUESTED ALL DATES is printed on reports and traces in place of REQUESTED FROM. |
| TO(,time) | If only the TO time is specified,
00:00:00.00 is used for the FROM time. All records with a timestamp
between 00:00:00.00 and the TO time are processed; the dates of records
are ignored.
REQUESTED ALL DATES is printed on reports and traces in place of REQUESTED FROM. |
|
FROM(date,time) or FROM(date) |
If the TO date and time is not specified:
NOT SPECIFIED is printed on reports and traces in place of REQUESTED TO. |
|
TO(date,time) or TO(date) |
If the FROM date and time is not
specified:
NOT SPECIFIED is printed on reports and traces in place of REQUESTED FROM. |
Processing starts with the first record with |a timestamp after 10:00 on 25 February 2008, and ends with the last |record with a timestamp before 10:10 on the same day.
|
·
·
·
|FROM(02/25/08,10:00),TO(,10:10) |
·
·
·
All records with a timestamp at or after 10:00 and before 10:10 are processed, regardless of the date.
·
·
·
FROM(,10:00) TO (,10:10)
·
·
·
Processing starts with the first record with a timestamp |after 13:00 on 25 February 2008, and ends with the last record in |the input data set.
|
·
·
·
|FROM(02/25/08,13:00) |
·
·
·