<?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: How to retrieve data at different times? in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28851#M1123</link>
    <description>Refer to duplicate post and reply here:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=5956&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=5956&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Fri, 22 May 2009 20:57:34 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-05-22T20:57:34Z</dc:date>
    <item>
      <title>How to retrieve data at different times?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28845#M1117</link>
      <description>Hello!&lt;BR /&gt;
&lt;BR /&gt;
I am having problems with the following in SAS: &lt;BR /&gt;
I am investigating the association between parents marital status and childrens health status. I am investigating this in the time period of 1990-2005. &lt;BR /&gt;
I can get information about parental marital status once every year - on Jan 1.  &lt;BR /&gt;
I can get information about the children continously. &lt;BR /&gt;
&lt;BR /&gt;
So, in order to be as precise as possible, I would like to do the following: &lt;BR /&gt;
&lt;BR /&gt;
If the child is born between Jan 1 and June 30 2000 (e.g) the information about parental marital status should be drawn on Jan 1 2000.&lt;BR /&gt;
&lt;BR /&gt;
If the child is born between Jul 1 and December 31 2000 the information about parental marital status should be drawn on Jan 1 2001.&lt;BR /&gt;
&lt;BR /&gt;
How can I do this in SAS?&lt;BR /&gt;
&lt;BR /&gt;
Kind regards, Grethe</description>
      <pubDate>Thu, 07 May 2009 07:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28845#M1117</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-07T07:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data at different times?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28846#M1118</link>
      <description>You can test your conditions with IF staements or using SAS functions&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
  date='1jan09'd;&lt;BR /&gt;
  date0=intnx('year',intnx('month',date,6),0);&lt;BR /&gt;
  put (_all_) (= date.);&lt;BR /&gt;
  date='1jul09'd;&lt;BR /&gt;
  date0=intnx('year',intnx('month',date,6),0);&lt;BR /&gt;
  put (_all_) (= date.);&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 07 May 2009 09:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28846#M1118</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2009-05-07T09:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data at different times?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28847#M1119</link>
      <description>Also, you might find interest in using the MONTH function to test the month-of-year values 1-6 and set your some_important_date using INTNX with 'year' (not month as shown) with the third argument of 0 -- otherwise you would use a third argument of 1 (again with 'year') to increment to the next year's start-date.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
format mybirthdate someotherdate date9.; &lt;BR /&gt;
mybirthdate = '01aug2000'd;&lt;BR /&gt;
if month(mybirthdate) le 6 then someotherdate = intnx('year',mybirthdate,0);&lt;BR /&gt;
else someotherdate = intnx('year',mybirthdate,1);&lt;BR /&gt;
putlog _all_;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 08 May 2009 20:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28847#M1119</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-08T20:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data at different times?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28848#M1120</link>
      <description>Thank you - both of you - for your responses!&lt;BR /&gt;
That was a big help. &lt;BR /&gt;
&lt;BR /&gt;
However, I have faced a new problem and need som help again. &lt;BR /&gt;
&lt;BR /&gt;
I am working with some variables, that have quite long names. The names of the variables are made out of numbers, and I only want to use the first two numbers in the variable name, when I run the analyses. How can i do that?&lt;BR /&gt;
&lt;BR /&gt;
I have tried to write: temp_1=(substr(variablename,1,2);&lt;BR /&gt;
&lt;BR /&gt;
but it doesnt seem to work. What am i doing wrong?&lt;BR /&gt;
&lt;BR /&gt;
Thank you!</description>
      <pubDate>Fri, 22 May 2009 12:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28848#M1120</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-22T12:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data at different times?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28849#M1121</link>
      <description>It is most suitable and considerate to forum visitors if you open a new post when you have a new question/concern.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 22 May 2009 20:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28849#M1121</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-22T20:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data at different times?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28850#M1122</link>
      <description>Also, you need only submit an item in a single forum, not multiple for a given post.</description>
      <pubDate>Fri, 22 May 2009 20:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28850#M1122</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-22T20:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data at different times?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28851#M1123</link>
      <description>Refer to duplicate post and reply here:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=5956&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=5956&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 22 May 2009 20:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-retrieve-data-at-different-times/m-p/28851#M1123</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-22T20:57:34Z</dc:date>
    </item>
  </channel>
</rss>

