<?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: Specifying the width of format/informat. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Specifying-the-width-of-format-informat/m-p/149463#M29547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To expand on what Tom is saying, the default length of a numeric variable is 8 bytes (not to be confused with 8 digits or 8 characters). The largest integer that SAS can store in a numeric variable with the default length of 8 (bytes) is 9,007,199,254,740,992.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formats are just a way for SAS to display the stored numeric variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 19:34:06 GMT</pubDate>
    <dc:creator>Fugue</dc:creator>
    <dc:date>2014-01-22T19:34:06Z</dc:date>
    <item>
      <title>Specifying the width of format/informat.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-the-width-of-format-informat/m-p/149461#M29545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query with regards to the width(10) specified in the below format lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format income comma10.2;&lt;/P&gt;&lt;P&gt;format taxpaid dollar10.2;&lt;/P&gt;&lt;P&gt;format savings euro10.2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We know that the length of numeric variables is 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then what exactly is this width,i could not understand.we can keep any value for width or how exactly i can understand this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know you thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 18:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-the-width-of-format-informat/m-p/149461#M29545</guid>
      <dc:creator>Chikku</dc:creator>
      <dc:date>2014-01-22T18:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the width of format/informat.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-the-width-of-format-informat/m-p/149462#M29546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Formats tell SAS how to display the value, not how to store it.&amp;nbsp; SAS only has two data types, floating point numbers and fixed length character strings.&lt;/P&gt;&lt;P&gt;So DOLLAR10.2 says to use 10 digits to display the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this little program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=today();&lt;/P&gt;&lt;P&gt;&amp;nbsp; put x=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / x= date9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / x= mmddyy10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / x= dollar10.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; / x= time8.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 19:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-the-width-of-format-informat/m-p/149462#M29546</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-22T19:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the width of format/informat.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-the-width-of-format-informat/m-p/149463#M29547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To expand on what Tom is saying, the default length of a numeric variable is 8 bytes (not to be confused with 8 digits or 8 characters). The largest integer that SAS can store in a numeric variable with the default length of 8 (bytes) is 9,007,199,254,740,992.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formats are just a way for SAS to display the stored numeric variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 19:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-the-width-of-format-informat/m-p/149463#M29547</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2014-01-22T19:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the width of format/informat.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-the-width-of-format-informat/m-p/149464#M29548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;HI,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Default length for a Char variables in SAS is 8 Charecter's.but where as default length for a numeric variable is 8 Bytes,Not 8 digits.which means Apprx One Byte can Accommodates two or more digits..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;As said by Fugue,we can store max 16 digits in a numeric variable .again number of digits we can store&amp;nbsp; is vary from One OS to Other OS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="6" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR valign="bottom"&gt;&lt;TH valign="top" width="27%"&gt;&lt;A name="a000502783"&gt;&lt;/A&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Length in Bytes&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Significant Digits &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Retained&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502784"&gt;&lt;/A&gt;Largest Integer &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Represented Exactly&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD valign="top" width="27%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502786"&gt;&lt;/A&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502787"&gt;&lt;/A&gt;8,192&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD valign="top" width="27%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502789"&gt;&lt;/A&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;6&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502790"&gt;&lt;/A&gt;2,097,152&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD valign="top" width="27%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502792"&gt;&lt;/A&gt;5&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;8&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502793"&gt;&lt;/A&gt;536,870,912&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD valign="top" width="27%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502795"&gt;&lt;/A&gt;6&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;11&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502796"&gt;&lt;/A&gt;137,438,953,472&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD valign="top" width="27%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502798"&gt;&lt;/A&gt;7&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502799"&gt;&lt;/A&gt;35,184,372,088,832&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR valign="top"&gt;&lt;TD valign="top" width="27%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502801"&gt;&lt;/A&gt;8&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;15&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" valign="top" width="36%"&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;&lt;A name="a000502802"&gt;&lt;/A&gt;9,007,199,254,740,992&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Source :SASSupport.Com.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana,geneva;"&gt;Sanjeev.K&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 11:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-the-width-of-format-informat/m-p/149464#M29548</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2014-01-23T11:17:10Z</dc:date>
    </item>
  </channel>
</rss>

