<?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: Formats and Informats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Formats-and-Informats/m-p/326560#M72740</link>
    <description>&lt;P&gt;In SAS, Dates are stored as numeric values. Numeric values (by default) use 8 bytes in storage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The date values are not stored as is, but are converted in to a number by calculating the number of days that have passed from 1st Jan 1960, to the given date. This number is then stored in numeric form taking up 8 bytes by default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formats simply tell SAS how a value should be displayed. You can change the format without affecting whatever value was actually stored. For example, if you changed the format to MMDDYY5., then the dates would only display MM/YY part of the date. But that would not affect the actual value stored, so, if you went back to using the&amp;nbsp;format MMDDYY10., then you would see the date how it is seen now.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Jan 2017 10:38:43 GMT</pubDate>
    <dc:creator>ShagilImam</dc:creator>
    <dc:date>2017-01-22T10:38:43Z</dc:date>
    <item>
      <title>Formats and Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formats-and-Informats/m-p/326558#M72739</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6839i8BF9D7C36DCCB881/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="date.png" title="date.png" /&gt;The format for the variable "race_date" is MMDDYY&lt;STRONG&gt;10&lt;/STRONG&gt;. and there are 10 characters in the variable - 2 for date, 2 for month, 4 for year and two forward slashes.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Can&amp;nbsp;you please let me know why the variable is displaying a&amp;nbsp;&lt;STRONG&gt;Length&lt;/STRONG&gt; of 8 in &lt;STRONG&gt;Column&lt;/STRONG&gt; &lt;STRONG&gt;Properties.&lt;/STRONG&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 22 Jan 2017 09:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formats-and-Informats/m-p/326558#M72739</guid>
      <dc:creator>KafeelBasha</dc:creator>
      <dc:date>2017-01-22T09:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formats and Informats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Formats-and-Informats/m-p/326560#M72740</link>
      <description>&lt;P&gt;In SAS, Dates are stored as numeric values. Numeric values (by default) use 8 bytes in storage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The date values are not stored as is, but are converted in to a number by calculating the number of days that have passed from 1st Jan 1960, to the given date. This number is then stored in numeric form taking up 8 bytes by default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formats simply tell SAS how a value should be displayed. You can change the format without affecting whatever value was actually stored. For example, if you changed the format to MMDDYY5., then the dates would only display MM/YY part of the date. But that would not affect the actual value stored, so, if you went back to using the&amp;nbsp;format MMDDYY10., then you would see the date how it is seen now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2017 10:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Formats-and-Informats/m-p/326560#M72740</guid>
      <dc:creator>ShagilImam</dc:creator>
      <dc:date>2017-01-22T10:38:43Z</dc:date>
    </item>
  </channel>
</rss>

