Example 3 (DATE command)

DATE DAY 1 5 HOUR 3 8. 
  • This command creates four variables (DATE_, CYCLE_, DAY_, and HOUR_) in a file where observations occur hourly.
  • For HOUR_, the starting value is 3 and the periodicity is 8.
  • For DAY_, the starting value is 1 and the periodicity is 5. Since DAY_ is the highest-order variable and it has a periodicity assigned, variable CYCLE_ is automatically created.

DATE reports the following:

  Name        Label

  CYCLE_      CYCLE, not periodic
  DAY_        DAY, period 5
  HOUR_       HOUR, period 8
  DATE_       DATE.  FORMAT:  "CCCC D H"

The following is a partial listing of the new variables:

  CYCLE_ DAY_ HOUR_ DATE_

       1   1    3      1 1 3
       1   1    4      1 1 4
       1   1    5      1 1 5
       1   1    6      1 1 6
       1   1    7      1 1 7
       1   2    0      1 2 0
       1   2    1      1 2 1
      ...
      12   4    6     12 4 6
      12   4    7     12 4 7
      12   5    0     12 5 0
      12   5    1     12 5 1
      12   5    2     12 5 2
      12   5    3     12 5 3
      12   5    4     12 5 4