<?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: Percent w.d Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Percent-w-d-Format/m-p/147001#M29200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Percentages are stored as the number you would use in mathematical operations. So 50% is stored as 0.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;36&amp;nbsp;&amp;nbsp; data test;&lt;/P&gt;&lt;P&gt;37&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; informat percentofmarks percent6.;&lt;/P&gt;&lt;P&gt;38&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format percentofmarks percent8.2;&lt;/P&gt;&lt;P&gt;39&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input studentname $ Standard percentofmarks ;&lt;/P&gt;&lt;P&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put percentofmarks = best12. ;&lt;/P&gt;&lt;P&gt;41&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put percentofmarks = percent8.2 ;&lt;/P&gt;&lt;P&gt;42&lt;/P&gt;&lt;P&gt;43&amp;nbsp;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;percentofmarks=0.6725&lt;/P&gt;&lt;P&gt;percentofmarks=67.25%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 19:05:36 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2014-01-20T19:05:36Z</dc:date>
    <item>
      <title>Percent w.d Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percent-w-d-Format/m-p/146999#M29198</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;To read the below percent field used this format which works fine.But I want to know how exactly the percentw.d format is woking internally because i have not understood how it is storing and displaying the percent data with some examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;informat percentofmarks percent6.;&lt;/P&gt;&lt;P&gt;format percentofmarks percent8.2;&lt;/P&gt;&lt;P&gt;---------------------------------------------------&lt;/P&gt;&lt;P&gt;studentname Standard percentageofmarks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syed 6 67.25%&lt;/P&gt;&lt;P&gt;---------------------------------------------------- &lt;/P&gt;&lt;P&gt;Please describe this.&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>Mon, 20 Jan 2014 18:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percent-w-d-Format/m-p/146999#M29198</guid>
      <dc:creator>Chikku</dc:creator>
      <dc:date>2014-01-20T18:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Percent w.d Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percent-w-d-Format/m-p/147000#M29199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The percentw.d &lt;STRONG&gt;in&lt;/STRONG&gt;format instructs SAS to read data containing percentages as numeric. Refer to &lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000204437.htm"&gt;https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000204437.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The percentw.d format does the opposite, it writes numeric data as percentages. Refer to &lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000205182.htm"&gt;https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000205182.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 18:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percent-w-d-Format/m-p/147000#M29199</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2014-01-20T18:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Percent w.d Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percent-w-d-Format/m-p/147001#M29200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Percentages are stored as the number you would use in mathematical operations. So 50% is stored as 0.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;36&amp;nbsp;&amp;nbsp; data test;&lt;/P&gt;&lt;P&gt;37&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; informat percentofmarks percent6.;&lt;/P&gt;&lt;P&gt;38&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format percentofmarks percent8.2;&lt;/P&gt;&lt;P&gt;39&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input studentname $ Standard percentofmarks ;&lt;/P&gt;&lt;P&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put percentofmarks = best12. ;&lt;/P&gt;&lt;P&gt;41&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put percentofmarks = percent8.2 ;&lt;/P&gt;&lt;P&gt;42&lt;/P&gt;&lt;P&gt;43&amp;nbsp;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;percentofmarks=0.6725&lt;/P&gt;&lt;P&gt;percentofmarks=67.25%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 19:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percent-w-d-Format/m-p/147001#M29200</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-20T19:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Percent w.d Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percent-w-d-Format/m-p/147002#M29201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;beware the D in any INFORMATw.d&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;INPUT&lt;/SPAN&gt; will assume the last "d" digits are decimal places even when you have no dot!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;158&amp;nbsp; data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;159&amp;nbsp; input percD percent6.1 @1 perc_noD percent6. @1 str_ $ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;160&amp;nbsp; put (str_ perc: perc:)( $8. 2*percent9.1&amp;nbsp; 2*best9.) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;161&amp;nbsp; cards;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;12.1%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12.1%&amp;nbsp;&amp;nbsp;&amp;nbsp; 12.1%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.121&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.121&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;12%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.2%&amp;nbsp;&amp;nbsp;&amp;nbsp; 12.0%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;NOTE: The data set &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the D in informatW.D&amp;nbsp; is really only there for binary informats which cannot present the dot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 08:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percent-w-d-Format/m-p/147002#M29201</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-01-22T08:07:45Z</dc:date>
    </item>
  </channel>
</rss>

