Example 4 (DATE command)
DATE DAY HOUR 1 24 BY 2.
- This command creates three variables (DATE_, DAY_, and HOUR_) in a file where observations occur every two hours in a 24-hour day.
- DAY_ uses the default starting value of 1. It has no periodicity, since none is specified, and it is the highest-order keyword on the command.
- HOUR_ starts with a value of 1 and has a periodicity of 24.
- Keyword
BYspecifies an increment of 2 to use in assigning hour values.
DATE reports
the following:
Name Label
DAY_ DAY, not periodic
HOUR_ HOUR, period 24 by 2
DATE_ DATE. FORMAT: "DDDD HH"
The following is a partial listing of the new variables:
DAY_ HOUR_ DATE_
1 1 1 1
1 3 1 3
1 5 1 5
...
39 17 39 17
39 19 39 19
39 21 39 21
39 23 39 23
40 1 40 1
40 3 40 3
40 5 40 5
40 7 40 7
40 9 40 9
40 11 40 11