<?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 Taking variables from the same data set to create a calendar date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Taking-variables-from-the-same-data-set-to-create-a-calendar/m-p/10658#M1051</link>
    <description>Hello,  I am new to SAS.  I am trying to take variable bdate and add it to variable LOS1 to get an actual date.  The data for both variables are in days.  Can someone help me?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Peewee</description>
    <pubDate>Tue, 15 Feb 2011 22:05:33 GMT</pubDate>
    <dc:creator>peewee</dc:creator>
    <dc:date>2011-02-15T22:05:33Z</dc:date>
    <item>
      <title>Taking variables from the same data set to create a calendar date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Taking-variables-from-the-same-data-set-to-create-a-calendar/m-p/10658#M1051</link>
      <description>Hello,  I am new to SAS.  I am trying to take variable bdate and add it to variable LOS1 to get an actual date.  The data for both variables are in days.  Can someone help me?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Peewee</description>
      <pubDate>Tue, 15 Feb 2011 22:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Taking-variables-from-the-same-data-set-to-create-a-calendar/m-p/10658#M1051</guid>
      <dc:creator>peewee</dc:creator>
      <dc:date>2011-02-15T22:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Taking variables from the same data set to create a calendar date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Taking-variables-from-the-same-data-set-to-create-a-calendar/m-p/10659#M1052</link>
      <description>SAS system architecture uses numeric variables for representing DATE (days since 1/1/1960) and DATETIME (seconds since same date at midnight) values.&lt;BR /&gt;
&lt;BR /&gt;
Also, there are various SAS functions to use with these variables for increment/decrement and manipulation, such as INTCK, INTNX.&lt;BR /&gt;
&lt;BR /&gt;
It's likely your external date/datetime fields must be converted, using a SAS INFORMAT or the INPUT function with a suitable INFORMAT.&lt;BR /&gt;
&lt;BR /&gt;
Suggest you may also want to search the SAS forum archives as well as using the SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website where there is SAS-hosted documentation and supplemental technical / conference materials (extensive) on the topic.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced arguments, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
introduction date datetime site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
intnx intck function site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
data step programming introduction site:sas.com</description>
      <pubDate>Tue, 15 Feb 2011 22:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Taking-variables-from-the-same-data-set-to-create-a-calendar/m-p/10659#M1052</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-02-15T22:20:36Z</dc:date>
    </item>
  </channel>
</rss>

