<?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: Convert SAS Date Variable to Numeric Variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153544#M40385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please forgive me, but I don't know what that means?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Nov 2014 19:40:03 GMT</pubDate>
    <dc:creator>mahler_ji</dc:creator>
    <dc:date>2014-11-02T19:40:03Z</dc:date>
    <item>
      <title>Convert SAS Date Variable to Numeric Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153542#M40383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pretty simple question that is really hanging me up.&amp;nbsp; I am converting some SAS dates using the following code into weekday format (which just returns a number for the day of the week):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mylib.twt6;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set mylib.twt1_4;&lt;/P&gt;&lt;P&gt;&amp;nbsp; wday = nextdt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format wday weekday1.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a new variable called wday from a full date variable (nextdt) and then converting into weekday format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the thing is, I want to be able to do things with that number (the 1-7 number that the weekday format has) such as find the average of the numbers, or sum them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get those numbers to change to numeric format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 18:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153542#M40383</guid>
      <dc:creator>mahler_ji</dc:creator>
      <dc:date>2014-11-02T18:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Date Variable to Numeric Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153543#M40384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the corresponding function in the assignment statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 19:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153543#M40384</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-11-02T19:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Date Variable to Numeric Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153544#M40385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please forgive me, but I don't know what that means?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 19:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153544#M40385</guid>
      <dc:creator>mahler_ji</dc:creator>
      <dc:date>2014-11-02T19:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Date Variable to Numeric Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153545#M40386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wday=weekday(nextdt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201173.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201173.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201173.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 20:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153545#M40386</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-11-02T20:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SAS Date Variable to Numeric Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153546#M40387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much @tom!!&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2014 20:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-SAS-Date-Variable-to-Numeric-Variable/m-p/153546#M40387</guid>
      <dc:creator>mahler_ji</dc:creator>
      <dc:date>2014-11-02T20:23:14Z</dc:date>
    </item>
  </channel>
</rss>

