My code is :
[pre]
data temp;
if _n_ =1 then do;
input @'visitors' / date $14. @'(Segment)' / Time $ Visits $ CampusTraffic $ OffCampusTraffic $ ;
output;
end;
input Time $ Visits $ CampusTraffic $ OffCampusTraffic $ ;
if Time ne '#' then output;
retain date;
datalines;
# ----------------------------------------
Visits for all visitors
April 23, 2010 April 23, 2010 ********want this in a column
# ----------------------------------------
# ----------------------------------------
# Graph
# ----------------------------------------
Hour All Visits (Segment) Traffic (Segment) Traffic (Segment)
00:00:00 492 0 492
01:00:00 259 0 259
02:00:00 130 0 130
03:00:00 100 0 100
04:00:00 66 0 66
05:00:00 99 0 99
06:00:00 242 6 236
07:00:00 597 80 517
08:00:00 1,106 268 838
09:00:00 1,421 383 1,038
10:00:00 1,518 438 1,080
11:00:00 1,524 419 1,105
12:00:00 1,436 321 1,115
13:00:00 1,385 243 1,142
14:00:00 1,252 158 1,094
15:00:00 1,299 142 1,157
16:00:00 1,178 87 1,091
17:00:00 1,025 16 1,009
18:00:00 928 7 921
19:00:00 971 3 968
20:00:00 992 3 989
21:00:00 998 3 995
22:00:00 933 0 933
23:00:00 731 0 731
# -------------------------------------------------------------------------------- causing issues in log
;
run;
proc print;
run;
[/pre]
Under SAS 9.0 version , code is OK.
Message was edited by: Ksharp