Example 7 (DATE command)

DATE W H 1 168
  • This example creates three variables (DATE_, WEEK_, and HOUR_) in a file where observations occur hourly.
  • Since the DAY keyword is not specified, a periodicity must be specified for HOUR. The value 168 indicates that there are 168 hours in a week.
  • The starting value of HOUR is specified as 1.

DATE reports the following:

  Name        Label

  WEEK_       WEEK, not periodic
  HOUR_       HOUR, period 168
  DATE_       DATE.  FORMAT:  "WWWW HHH"

The following is a partial listing of the new variables:

    WEEK_ HOUR_ DATE_

       1    1     1   1
       1    2     1   2
       1    3     1   3
       1    4     1   4
       1    5     1   5
       1    6     1   6
     ...
       1  161     1 161
       1  162     1 162
       1  163     1 163
       1  164     1 164
       1  165     1 165
       1  166     1 166
       1  167     1 167
       2    0     2   0
       2    1     2   1
       2    2     2   2
       2    3     2   3
       2    4     2   4
       2    5     2   5
      ...
       3  131     3 131
       3  132     3 132
       3  133     3 133
       3  134     3 134
       3  135     3 135
       3  136     3 136
       3  137     3 137
       3  138     3 138