<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tracking date anniversary in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30328#M5779</link>
    <description>Thanks for your reply Daryl, buts its not quite what im looking for.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to create a report where i can look at activity by first/second/third etc. month since their sign up.&lt;BR /&gt;
&lt;BR /&gt;
Since everyone signs up at different dates, they will have a different monthly anniversary, so I'm not sure how to structure my data to take that into account.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again for your help.</description>
    <pubDate>Mon, 08 Nov 2010 20:04:11 GMT</pubDate>
    <dc:creator>KDang</dc:creator>
    <dc:date>2010-11-08T20:04:11Z</dc:date>
    <item>
      <title>Tracking date by months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30324#M5775</link>
      <description>Hi,&lt;BR /&gt;
I have a data set with a log of members activities, and their signup date&lt;BR /&gt;
for example the data may look like this&lt;BR /&gt;
&lt;BR /&gt;
id signupdate logindate activity&lt;BR /&gt;
1 11/01/07 11/01/07 open&lt;BR /&gt;
1 11/01/07 11/06/07 open&lt;BR /&gt;
1 11/01/07 11/07/07 start&lt;BR /&gt;
1 11/01/07 11/22/07 open&lt;BR /&gt;
1 11/01/07 12/06/07 start&lt;BR /&gt;
1 11/01/07 12/08/07 open&lt;BR /&gt;
2 12/05/07 01/01/08 start&lt;BR /&gt;
2 12/05/07 01/22/08 open&lt;BR /&gt;
2 12/05/07 01/28/08 start&lt;BR /&gt;
2 12/05/07 01/29/08 open&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to get a report that will track their activity by month since sign up&lt;BR /&gt;
for example: &lt;BR /&gt;
ID = 1 &lt;BR /&gt;
1st month:&lt;BR /&gt;
Login: 4&lt;BR /&gt;
Open: 3&lt;BR /&gt;
Start: 1&lt;BR /&gt;
2nd month:&lt;BR /&gt;
Login: 2&lt;BR /&gt;
Open: 1&lt;BR /&gt;
Start: 1&lt;BR /&gt;
&lt;BR /&gt;
ID = 2&lt;BR /&gt;
1st month: &lt;BR /&gt;
Login: 1&lt;BR /&gt;
Open: 0&lt;BR /&gt;
Start: 1&lt;BR /&gt;
2nd month:&lt;BR /&gt;
Login: 3&lt;BR /&gt;
Open: 1&lt;BR /&gt;
Start: 2&lt;BR /&gt;
&lt;BR /&gt;
I can probably figure out the reporting aspect of it, any help in structuring my data set and functions that i can use to get to that point will be much appreciated!&lt;BR /&gt;
Thanks you.

Message was edited by: KDang</description>
      <pubDate>Mon, 08 Nov 2010 16:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30324#M5775</guid>
      <dc:creator>KDang</dc:creator>
      <dc:date>2010-11-08T16:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30325#M5776</link>
      <description>Hi:&lt;BR /&gt;
  Should all these login dates be in 08 or 07 for ID# 2???&lt;BR /&gt;
[pre]&lt;BR /&gt;
2 Dec/05/07 Jan/01/08 start&lt;BR /&gt;
2 Dec/05/07 Jan/22/07 open&lt;BR /&gt;
2 Dec/05/07 Jan/28/07 start&lt;BR /&gt;
2 Dec/05/07 Jan/29/07 open&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
Otherwise, it looks odd that they logged in in Jan, 07 when they signed up in Dec, 07.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 08 Nov 2010 19:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30325#M5776</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-08T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30326#M5777</link>
      <description>You could try PROC FREQ to get the counts you are looking for.  Consider this example below.  The first data step is clumsy; I couldn't find a SAS format to read in dates of the form MON/DD/YY.  So I had to parse your dates to read them correctly.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data test (keep=id signupdate logindate loginmmyy activity);&lt;BR /&gt;
 input id s_month $ 3-5 s_day 7-8 s_year 10-11 l_month $ 13-15 l_day 17-18 l_year 20-21 activity $;&lt;BR /&gt;
 format signupdate logindate mmddyy10.;&lt;BR /&gt;
 format loginmmyy monyy.;&lt;BR /&gt;
 signupdate_string = put(s_day,z2.) || upcase(s_month) || put(s_year,z2.);&lt;BR /&gt;
 signupdate = input(signupdate_string,date7.);&lt;BR /&gt;
 logindate_string = put(l_day,z2.) || upcase(l_month) || put(l_year,z2.);&lt;BR /&gt;
 logindate = input(logindate_string,date7.);&lt;BR /&gt;
 loginmmyy = logindate;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1 Nov/01/07 Nov/01/07 open&lt;BR /&gt;
1 Nov/01/07 Nov/06/07 open&lt;BR /&gt;
1 Nov/01/07 Nov/07/07 start&lt;BR /&gt;
1 Nov/01/07 Nov/22/07 open&lt;BR /&gt;
1 Nov/01/07 Dec/06/07 start&lt;BR /&gt;
1 Nov/01/07 Dec/08/07 open&lt;BR /&gt;
2 Dec/05/07 Jan/01/08 start&lt;BR /&gt;
2 Dec/05/07 Jan/22/07 open&lt;BR /&gt;
2 Dec/05/07 Jan/28/07 start&lt;BR /&gt;
2 Dec/05/07 Jan/29/07 open&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=test;&lt;BR /&gt;
 by id loginmmyy;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=test noprint;&lt;BR /&gt;
 by id loginmmyy;&lt;BR /&gt;
 tables activity / out=output;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc print data=output noobs;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Result:&lt;BR /&gt;
[pre]&lt;BR /&gt;
                       id    loginmmyy    activity    COUNT    PERCENT&lt;BR /&gt;
&lt;BR /&gt;
                         1      NOV07       open         3       75.000&lt;BR /&gt;
                         1      NOV07       start        1       25.000&lt;BR /&gt;
                         1      DEC07       open         1       50.000&lt;BR /&gt;
                         1      DEC07       start        1       50.000&lt;BR /&gt;
                         2      JAN07       open         2       66.667&lt;BR /&gt;
                         2      JAN07       start        1       33.333&lt;BR /&gt;
                         2      JAN08       start        1      100.000&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 08 Nov 2010 19:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30326#M5777</guid>
      <dc:creator>Daryl</dc:creator>
      <dc:date>2010-11-08T19:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30327#M5778</link>
      <description>Yes sorry 07 should be 08, i've make the edits above, same with the month formatting to MMDDYY</description>
      <pubDate>Mon, 08 Nov 2010 19:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30327#M5778</guid>
      <dc:creator>KDang</dc:creator>
      <dc:date>2010-11-08T19:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30328#M5779</link>
      <description>Thanks for your reply Daryl, buts its not quite what im looking for.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to create a report where i can look at activity by first/second/third etc. month since their sign up.&lt;BR /&gt;
&lt;BR /&gt;
Since everyone signs up at different dates, they will have a different monthly anniversary, so I'm not sure how to structure my data to take that into account.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again for your help.</description>
      <pubDate>Mon, 08 Nov 2010 20:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30328#M5779</guid>
      <dc:creator>KDang</dc:creator>
      <dc:date>2010-11-08T20:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30329#M5780</link>
      <description>Hello Kdang,&lt;BR /&gt;
&lt;BR /&gt;
Try the following code, where b is the data set containing id signupdate logindate activity:&lt;BR /&gt;
&lt;BR /&gt;
/* Add Login Month */;&lt;BR /&gt;
data r;&lt;BR /&gt;
  set b;&lt;BR /&gt;
  lm=MONTH(logindate);&lt;BR /&gt;
run;&lt;BR /&gt;
/* Count Start and Open Activities */;&lt;BR /&gt;
proc SQL;&lt;BR /&gt;
  create table rr as &lt;BR /&gt;
  select id, lm, activity, Count(*) as n&lt;BR /&gt;
  from r &lt;BR /&gt;
  group by id, lm, activity&lt;BR /&gt;
;quit;&lt;BR /&gt;
/* Count Login Activities */;&lt;BR /&gt;
proc SQL;&lt;BR /&gt;
  create table login as&lt;BR /&gt;
  select id, lm, "login" as activity , sum(n) as n&lt;BR /&gt;
  from rr&lt;BR /&gt;
  group by id, lm&lt;BR /&gt;
;quit; &lt;BR /&gt;
/* Combine results */;&lt;BR /&gt;
data rrr;&lt;BR /&gt;
  set rr login;&lt;BR /&gt;
run;&lt;BR /&gt;
proc sort data=rrr;&lt;BR /&gt;
  by id lm activity;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Mon, 08 Nov 2010 20:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30329#M5780</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2010-11-08T20:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30330#M5781</link>
      <description>OK, I understand.  The report should be easy to create if you can derive a new column in your data that describes the month from sign-up-date.&lt;BR /&gt;
&lt;BR /&gt;
id signupdate logindate activity month_from_signup&lt;BR /&gt;
1 11/01/07 11/01/07 open 1&lt;BR /&gt;
1 11/01/07 11/06/07 open 1&lt;BR /&gt;
1 11/01/07 11/07/07 start 1&lt;BR /&gt;
1 11/01/07 11/22/07 open 1&lt;BR /&gt;
1 11/01/07 12/06/07 start 2&lt;BR /&gt;
1 11/01/07 12/08/07 open 2&lt;BR /&gt;
2 12/05/07 01/01/08 start 1&lt;BR /&gt;
2 12/05/07 01/22/08 open 2&lt;BR /&gt;
2 12/05/07 01/28/08 start 2&lt;BR /&gt;
2 12/05/07 01/29/08 open 2</description>
      <pubDate>Mon, 08 Nov 2010 20:39:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30330#M5781</guid>
      <dc:creator>Daryl</dc:creator>
      <dc:date>2010-11-08T20:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30331#M5782</link>
      <description>I've modified my example above to calculate the month from signup.&lt;BR /&gt;
&lt;BR /&gt;
It's a rough calculation.  Take the number of days ellapsed from sign up and divide it by the number of days in an average month.  Add 1 so that the first month appears as month 1 instead of month 0.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
month_from_signup = int(1 + (logindate - signupdate) / (365.25/12));&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
The full code is here:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data test (keep=id signupdate logindate month_from_signup activity); &lt;BR /&gt;
input id s_month $ 3-5 s_day 7-8 s_year 10-11 l_month $ 13-15 l_day 17-18 l_year 20-21 activity $; &lt;BR /&gt;
format signupdate logindate mmddyy10.; &lt;BR /&gt;
signupdate_string = put(s_day,z2.) || upcase(s_month) || put(s_year,z2.); &lt;BR /&gt;
signupdate = input(signupdate_string,date7.); &lt;BR /&gt;
logindate_string = put(l_day,z2.) || upcase(l_month) || put(l_year,z2.); &lt;BR /&gt;
logindate = input(logindate_string,date7.); &lt;BR /&gt;
month_from_signup = int(1 + (logindate - signupdate) / (365.25/12));&lt;BR /&gt;
datalines;&lt;BR /&gt;
1 Nov/01/07 Nov/01/07 open&lt;BR /&gt;
1 Nov/01/07 Nov/06/07 open&lt;BR /&gt;
1 Nov/01/07 Nov/07/07 start&lt;BR /&gt;
1 Nov/01/07 Nov/22/07 open&lt;BR /&gt;
1 Nov/01/07 Dec/06/07 start&lt;BR /&gt;
1 Nov/01/07 Dec/08/07 open&lt;BR /&gt;
2 Dec/05/07 Jan/01/08 start&lt;BR /&gt;
2 Dec/05/07 Jan/22/08 open&lt;BR /&gt;
2 Dec/05/07 Jan/28/08 start&lt;BR /&gt;
2 Dec/05/07 Jan/29/08 open&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
proc sort data=test; &lt;BR /&gt;
by id month_from_signup;&lt;BR /&gt;
run;&lt;BR /&gt;
proc freq data=test noprint; &lt;BR /&gt;
by id month_from_signup; &lt;BR /&gt;
tables activity / out=output;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=output noobs;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Result:&lt;BR /&gt;
[pre]&lt;BR /&gt;
                                month_&lt;BR /&gt;
                                 from_&lt;BR /&gt;
                          id    signup    activity    COUNT    PERCENT&lt;BR /&gt;
&lt;BR /&gt;
                           1       1       open         3       75.000&lt;BR /&gt;
                           1       1       start        1       25.000&lt;BR /&gt;
                           1       2       open         1       50.000&lt;BR /&gt;
                           1       2       start        1       50.000&lt;BR /&gt;
                           2       1       start        1      100.000&lt;BR /&gt;
                           2       2       open         2       66.667&lt;BR /&gt;
                           2       2       start        1       33.333&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Getting closer?</description>
      <pubDate>Mon, 08 Nov 2010 21:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30331#M5782</guid>
      <dc:creator>Daryl</dc:creator>
      <dc:date>2010-11-08T21:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30332#M5783</link>
      <description>Sorry, I did not realize that you need the month from signdate. In this case the first data step should be replaced with the code:&lt;BR /&gt;
&lt;BR /&gt;
data r;&lt;BR /&gt;
set b;&lt;BR /&gt;
  lm=(MONTH(logindate)+12*YEAR(logindate))-&lt;BR /&gt;
       (MONTH(signdate )+12*YEAR(signdate ));&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
SPR</description>
      <pubDate>Mon, 08 Nov 2010 21:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30332#M5783</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2010-11-08T21:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30333#M5784</link>
      <description>Yes getting much closer now i have the dataset that looks like the following&lt;BR /&gt;
&lt;BR /&gt;
id signupdate logindate activity month_fr_signup&lt;BR /&gt;
1 Nov/01/07 Nov/01/07 open 1&lt;BR /&gt;
1 Nov/01/07 Nov/06/07 open 1&lt;BR /&gt;
1 Nov/01/07 Nov/07/07 start 1&lt;BR /&gt;
1 Nov/01/07 Nov/22/07 open 1&lt;BR /&gt;
1 Nov/01/07 Dec/06/07 start 2&lt;BR /&gt;
1 Nov/01/07 Dec/08/07 open 2&lt;BR /&gt;
2 Dec/05/07 Jan/01/08 start 1&lt;BR /&gt;
2 Dec/05/07 Jan/22/08 open 2&lt;BR /&gt;
2 Dec/05/07 Jan/28/08 start 2&lt;BR /&gt;
2 Dec/05/07 Jan/29/08 open 2&lt;BR /&gt;
&lt;BR /&gt;
The final step is to calculate 3 variables: Activitycount Startcount Opencount&lt;BR /&gt;
by id and by month_fr_signup&lt;BR /&gt;
so it looks like the following: &lt;BR /&gt;
&lt;BR /&gt;
id signupdate logindate activity month_fr_signup Activitycount Startcount Opencount&lt;BR /&gt;
1 Nov/01/07 Nov/01/07 open 1 1 0 1&lt;BR /&gt;
1 Nov/01/07 Nov/06/07 open 1 2 0 2&lt;BR /&gt;
1 Nov/01/07 Nov/07/07 start 1 3 1 2&lt;BR /&gt;
1 Nov/01/07 Nov/22/07 open 1 4 1 3&lt;BR /&gt;
1 Nov/01/07 Dec/06/07 start 2 1 1 0&lt;BR /&gt;
1 Nov/01/07 Dec/08/07 open 2 2 1 1&lt;BR /&gt;
2 Dec/05/07 Jan/01/08 start 1 1 1 0&lt;BR /&gt;
2 Dec/05/07 Jan/22/08 open 2 1 0 1&lt;BR /&gt;
2 Dec/05/07 Jan/28/08 start 2 2 1 1&lt;BR /&gt;
2 Dec/05/07 Jan/29/08 open 2 3 1 2</description>
      <pubDate>Tue, 09 Nov 2010 16:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30333#M5784</guid>
      <dc:creator>KDang</dc:creator>
      <dc:date>2010-11-09T16:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date anniversary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30334#M5785</link>
      <description>Add the following data step after the proc sort.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data test;&lt;BR /&gt;
 set test;&lt;BR /&gt;
  by id month_from_signup;&lt;BR /&gt;
  retain activity_count start_count open_count;&lt;BR /&gt;
  if first.month_from_signup then do;&lt;BR /&gt;
   activity_count = 1;&lt;BR /&gt;
   start_count = 0;&lt;BR /&gt;
   open_count = 0;&lt;BR /&gt;
  end;&lt;BR /&gt;
  else do;&lt;BR /&gt;
   activity_count + 1;&lt;BR /&gt;
  end;&lt;BR /&gt;
  if activity = "start" then do;&lt;BR /&gt;
    start_count + 1;&lt;BR /&gt;
  end;&lt;BR /&gt;
  else if activity = "open" then do;&lt;BR /&gt;
	open_count + 1;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 09 Nov 2010 16:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30334#M5785</guid>
      <dc:creator>Daryl</dc:creator>
      <dc:date>2010-11-09T16:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date by months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30335#M5786</link>
      <description>Hi. For your siduation that has lots of statistical estimator, The 'proc tabulate' is the best choice.And Cynthia@sas can make it very well.&lt;BR /&gt;
[pre]&lt;BR /&gt;
data temp;&lt;BR /&gt;
 input id signupdate  : mmddyy8. logindate : mmddyy8. activity $;&lt;BR /&gt;
 format  signupdate  mmddyy8. logindate mmddyy8. ;&lt;BR /&gt;
 dif=intck('day',signupdate,logindate);&lt;BR /&gt;
 interval=floor(dif/30)+1;&lt;BR /&gt;
 drop dif ;&lt;BR /&gt;
datalines;&lt;BR /&gt;
1 11/01/07 11/01/07 open&lt;BR /&gt;
1 11/01/07 11/06/07 open&lt;BR /&gt;
1 11/01/07 11/07/07 start&lt;BR /&gt;
1 11/01/07 11/22/07 open&lt;BR /&gt;
1 11/01/07 12/06/07 start&lt;BR /&gt;
1 11/01/07 12/08/07 open&lt;BR /&gt;
2 12/05/07 01/01/08 start&lt;BR /&gt;
2 12/05/07 01/22/08 open&lt;BR /&gt;
2 12/05/07 01/28/08 start&lt;BR /&gt;
2 12/05/07 01/29/08 open&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
options missing=0;&lt;BR /&gt;
ods html file='c:\tab.html' style=sasweb;&lt;BR /&gt;
proc tabulate data=temp;&lt;BR /&gt;
 class id interval activity;&lt;BR /&gt;
 table id*interval='month',activity='Number of activity' all='Number of Login';&lt;BR /&gt;
 keylabel n=' ';&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp

Message was edited by: Ksharp</description>
      <pubDate>Wed, 10 Nov 2010 07:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30335#M5786</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-11-10T07:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking date by months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30336#M5787</link>
      <description>Thanks for the help all, ive gotten the problem solved now.</description>
      <pubDate>Wed, 10 Nov 2010 15:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tracking-date-by-months/m-p/30336#M5787</guid>
      <dc:creator>KDang</dc:creator>
      <dc:date>2010-11-10T15:34:43Z</dc:date>
    </item>
  </channel>
</rss>

