<?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: Get time interval variables from long format of longitudinal data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245331#M45763</link>
    <description>&lt;P&gt;What's the business logic, and possibly even, how did Excel calculate it?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2016 22:17:13 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-01-21T22:17:13Z</dc:date>
    <item>
      <title>Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245319#M45759</link>
      <description>&lt;P&gt;Hi Dear All,&lt;/P&gt;
&lt;P&gt;I have a data set below:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; A;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ID visit_date status Event;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datalines&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;46 27-Oct-08 Normal 1&lt;/P&gt;
&lt;P&gt;46 23-Apr-09 Normal 0&lt;/P&gt;
&lt;P&gt;46 3-Dec-09 Normal 0&lt;/P&gt;
&lt;P&gt;46 6-Jan-11 Normal 0&lt;/P&gt;
&lt;P&gt;53 22-Dec-08 Normal 0&lt;/P&gt;
&lt;P&gt;53 25-Jun-09 Normal 0&lt;/P&gt;
&lt;P&gt;53 22-Dec-09 Normal 1&lt;/P&gt;
&lt;P&gt;54 17-Jan-09 Low 1&lt;/P&gt;
&lt;P&gt;54 13-Aug-09 Normal 0&lt;/P&gt;
&lt;P&gt;54 10-Jun-10 Normal 0&lt;/P&gt;
&lt;P&gt;54 7-Apr-11 Normal 0&lt;/P&gt;
&lt;P&gt;59 2-Feb-09 Normal 0&lt;/P&gt;
&lt;P&gt;59 23-Jul-09 Normal 1&lt;/P&gt;
&lt;P&gt;59 4-Feb-10 Normal 0&lt;/P&gt;
&lt;P&gt;59 23-Jan-11 Normal 0&lt;/P&gt;
&lt;P&gt;66 21-Apr-09 Normal 0&lt;/P&gt;
&lt;P&gt;66 15-Oct-09 Normal 0&lt;/P&gt;
&lt;P&gt;66 8-Apr-10 Normal 0&lt;/P&gt;
&lt;P&gt;66 7-Apr-11 Normal 0&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;I want to create two new variables: start, and exit.&amp;nbsp;The new&amp;nbsp;data set like below:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; B;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ID visit_date status Event start exit;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datalines&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;46 27-Oct-08 Normal 1 0 178&lt;/P&gt;
&lt;P&gt;46 23-Apr-09 Normal 0 178 224&lt;/P&gt;
&lt;P&gt;46 3-Dec-09 Normal 0 224 399&lt;/P&gt;
&lt;P&gt;46 6-Jan-11 Normal 0&lt;/P&gt;
&lt;P&gt;53 22-Dec-08 Normal 0 0 185&lt;/P&gt;
&lt;P&gt;53 25-Jun-09 Normal 0&lt;/P&gt;
&lt;P&gt;53 22-Dec-09 Normal 1&lt;/P&gt;
&lt;P&gt;54 17-Jan-09 Low 1&lt;/P&gt;
&lt;P&gt;54 13-Aug-09 Normal 0&lt;/P&gt;
&lt;P&gt;54 10-Jun-10 Normal 0&lt;/P&gt;
&lt;P&gt;54 7-Apr-11 Normal 0&lt;/P&gt;
&lt;P&gt;59 2-Feb-09 Normal 0&lt;/P&gt;
&lt;P&gt;59 23-Jul-09 Normal 1&lt;/P&gt;
&lt;P&gt;59 4-Feb-10 Normal 0&lt;/P&gt;
&lt;P&gt;59 23-Jan-11 Normal 0&lt;/P&gt;
&lt;P&gt;66 21-Apr-09 Normal 0&lt;/P&gt;
&lt;P&gt;66 15-Oct-09 Normal 0&lt;/P&gt;
&lt;P&gt;66 8-Apr-10 Normal 0&lt;/P&gt;
&lt;P&gt;66 7-Apr-11 Normal 0&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there a quick way to create variables 'start' and 'exit' based on my data set?&amp;nbsp; Then I can use proc phreg to evaluate the effect of status in each time interval on event.&lt;/P&gt;
&lt;P&gt;Thanks so much for your help,&lt;/P&gt;
&lt;P&gt;Xinjian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 21:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245319#M45759</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2016-01-21T21:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245322#M45760</link>
      <description>&lt;P&gt;How you calculate&amp;nbsp;&lt;SPAN&gt;start and exit??&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245322#M45760</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-01-21T22:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245323#M45761</link>
      <description>&lt;P&gt;I did not. These values are from excel calculation.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245323#M45761</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2016-01-21T22:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245331#M45763</link>
      <description>&lt;P&gt;What's the business logic, and possibly even, how did Excel calculate it?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245331#M45763</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-21T22:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245341#M45767</link>
      <description>&lt;P&gt;Forget about excel now.... Even your example is not complete and now clear logic behind.&lt;/P&gt;
&lt;P&gt;You should now what you need as you said you need the data for applying&amp;nbsp;&lt;SPAN&gt;proc phreg.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So now what &lt;STRONG&gt;start&lt;/STRONG&gt; shoud represent and what &lt;STRONG&gt;end&lt;/STRONG&gt; should represent? What you logic behind?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you just need the days interval between each&amp;nbsp;consecutive observation for the same ID, you can do that easily like&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data A;
input ID visit_date: DATE8. status $ Event;
format visit_date DATE8.;
datalines;
46 27-Oct-08 Normal 1
46 23-Apr-09 Normal 0
46 3-Dec-09 Normal 0
46 6-Jan-11 Normal 0
53 22-Dec-08 Normal 0
53 25-Jun-09 Normal 0
53 22-Dec-09 Normal 1
54 17-Jan-09 Low 1
54 13-Aug-09 Normal 0
54 10-Jun-10 Normal 0
54 7-Apr-11 Normal 0
59 2-Feb-09 Normal 0
59 23-Jul-09 Normal 1
59 4-Feb-10 Normal 0
59 23-Jan-11 Normal 0
66 21-Apr-09 Normal 0
66 15-Oct-09 Normal 0
66 8-Apr-10 Normal 0
66 7-Apr-11 Normal 0
;
data want;
set A;
by ID;
lagdate=lag(visit_date);
if first.ID then interval=0;
else interval=intck('day',lagdate,visit_date);
drop lagdate;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;And if you need thhe interval value to be accumulative from first observation to the last observation under the same ID. Just change the code to do that easily too&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set A;
by ID;
retain interval;
lagdate=lag(visit_date);
if first.ID then interval=0;
else interval =interval+intck('day',lagdate,visit_date);
drop lagdate;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jan 2016 23:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245341#M45767</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-01-21T23:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245372#M45775</link>
      <description>&lt;P&gt;Hi &lt;A class="lia-link-navigation lia-page-link lia-user-name-link" id="link_8" style="color: rgb(0, 125, 195);" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49185" target="_self"&gt;&lt;SPAN class="login-bold"&gt;mohamed_zaki&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;and Reeza,&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp; so much for quick response. My data set is a longitudinaI set, I have used first 'status' of&amp;nbsp;each subject to evaluate the effect of status on 'event', the follow up time is last 'visit_date' -first visit_date. Proc phreg was used for analysis. To answer some critics, I want to test if changes of 'status' ( from normal to low or&amp;nbsp; low-normal) in each interval have effects on 'event'. That is why I want to create two variables 'start' and 'exit' from data set A. Then I can run :&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;phreg&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;model&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; (start, exit) * event(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;) =status;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;I may mislead you for data set B that is the data file I want to make.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Can you help me to make these two variables 'start' and 'exit'?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Xinjian&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 02:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245372#M45775</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2016-01-22T02:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245573#M45849</link>
      <description>&lt;P&gt;Maybe we need to be more explicit in questions&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data B;

input ID visit_date status Event start exit;

datalines;

46 27-Oct-08 Normal 1 0 178   &amp;lt;= What specific calculation gets a value of 178 on this line? It looks like it is the number of days to the next date, but we need confirmation.

46 23-Apr-09 Normal 0 178 224

46 3-Dec-09 Normal 0 224 399

46 6-Jan-11 Normal 0   &amp;lt;= Does this one not have either a start or end because the next record is for a different ID?

53 22-Dec-08 Normal 0 0 185

53 25-Jun-09 Normal 0  &amp;lt;= Why does this record NOT have a start or end? Did you just stop calculating them by hand for examples?

53 22-Dec-09 Normal 1

54 17-Jan-09 Low 1

54 13-Aug-09 Normal 0

54 10-Jun-10 Normal 0

54 7-Apr-11 Normal 0

59 2-Feb-09 Normal 0

59 23-Jul-09 Normal 1

59 4-Feb-10 Normal 0

59 23-Jan-11 Normal 0

66 21-Apr-09 Normal 0

66 15-Oct-09 Normal 0

66 8-Apr-10 Normal 0

66 7-Apr-11 Normal 0

;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jan 2016 23:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245573#M45849</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-22T23:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245592#M45852</link>
      <description>&lt;P&gt;Hi Ballardw,&lt;/P&gt;
&lt;P&gt;The first value of 'start' with ID 46 is 0 (use first visit_date as baseline), value of 'exit' = 2nd visit_date - 1st visit_date;&lt;/P&gt;
&lt;P&gt;2nd value of 'start'=2nd visit_date - 1st visit_date, value of 'exit' =&amp;nbsp;3rd visit_date -&amp;nbsp;2nd visit_date;&lt;/P&gt;
&lt;P&gt;3rd value of 'start'=3rd visit_date -&amp;nbsp;2nd visit_date, value of 'exit' =&amp;nbsp;4th visit_date -&amp;nbsp;3rdd visit_date;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in my data&amp;nbsp; set, each subject has 4 measurement points ('status'). I just want to see if there is siginificant effect of 'status' on 'event' in each time interval. the fourth observation will be viewed as missing data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes, i only calculated 4 observations by using excel spreadsheet.&lt;/P&gt;
&lt;P&gt;Thanks for your help,&lt;/P&gt;
&lt;P&gt;Xinjian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 03:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245592#M45852</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2016-01-23T03:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245603#M45856</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to do it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data need ;
retain id visit_date Status Event Start;
format visit_date DATE8.;
set A (rename=(id = origid visit_date=next_date status=originstatus Event=originevent)) end=end ;
by origid;
if first.origid then call missing(Exit); 
else Exit=intck('day',visit_date,next_date);
Start=lag(Exit);
if Start =. then Start=0;
if Exit = . then call missing(Start);
if _n_ &amp;gt; 1 then output;
visit_date = next_date;
id = origid;
Status=originstatus; 
Event=originevent;
if not end then return;
call missing(next_date,Start,Exit);
output;
drop origid originstatus originevent next_date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245603#M45856</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-01-23T04:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get time interval variables from long format of longitudinal data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245896#M45940</link>
      <description>&lt;P&gt;Hi &lt;A class="lia-link-navigation lia-page-link lia-user-name-link" id="link_48" style="color: rgb(0, 125, 195);" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49185" target="_self"&gt;&lt;SPAN class="login-bold"&gt;mohamed_zaki&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I tried your syntax. it works very well. Thanks so much for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-time-interval-variables-from-long-format-of-longitudinal/m-p/245896#M45940</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2016-01-25T16:32:34Z</dc:date>
    </item>
  </channel>
</rss>

