Hi,
I have the following table in sas with mydatetime, mydate, mytime and myreturn:
Mydate Mytime MyReturn
30Jan06 10:00:01 0.03
30Jan06 10:02:05 0.08
30Jan06 10:04:05 0.04
30Jan06 10:06:05 0.02
. . .
30Jan06 16:45:01 0.01
30Jan06 16:45:23 0.04
. . .
. . .
. . .
31Jan06 09:45:01 0.01
31Jan06 09:45:01 0.04
31Jan06 09:45:02 0.03
The table is huge and the dots just mean that the table continues.
I want to construct an artificial time stamp spaced 5 minutes equally starting from the start of trade at 10.00am which picks the returns closest to the 5 mins.
That is, for the 30Jan06, i want a table like:
Mydate Mytime(5) MyReturn
30Jan06 10:00:01 0.03
30Jan06 10:05:01 0.04
etc
Thank you,
c+
I have the following table in sas with mydatetime, mydate, mytime and myreturn:
Mydate Mytime MyReturn
30Jan06 10:00:01 0.03
30Jan06 10:02:05 0.08
30Jan06 10:04:05 0.04
30Jan06 10:06:05 0.02
. . .
30Jan06 16:45:01 0.01
30Jan06 16:45:23 0.04
. . .
. . .
. . .
31Jan06 09:45:01 0.01
31Jan06 09:45:01 0.04
31Jan06 09:45:02 0.03
The table is huge and the dots just mean that the table continues.
I want to construct an artificial time stamp spaced 5 minutes equally starting from the start of trade at 10.00am which picks the returns closest to the 5 mins.
That is, for the 30Jan06, i want a table like:
Mydate Mytime(5) MyReturn
30Jan06 10:00:01 0.03
30Jan06 10:05:01 0.04
etc
Thank you,
c+