<?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: Display in millions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862351#M340627</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have tried some codes&amp;nbsp;and all didn't work well&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;picture millions (fuzz=0)
   low-high='0000 M' ( mult=.000001)
;
run;&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have to have enough space to show all the digits. Your code allows for just 4 places for digits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;May you explain why you used this number&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;.000001&lt;/CODE&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might remember that earlier in this thread, I suggest a simple method of getting the results you want, that was dividing by one million. Question for you: dividing by one million is the same as multiplying by ___________________.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May you explain why you put&amp;nbsp; &amp;nbsp; 11 numbers?&lt;/P&gt;
&lt;PRE&gt;00,000,000,009&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These things you can figure out for yourself by experimenting ... change the code from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; and see what happens.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Mar 2023 14:31:27 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-03-05T14:31:27Z</dc:date>
    <item>
      <title>Display in millions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862339#M340618</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am runnning proc tabulate.&lt;/P&gt;
&lt;P&gt;I want to display number in millions.&lt;/P&gt;
&lt;P&gt;Instead of see the following numbers:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_0-1678003336009.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81074i51466A852EC9D3AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_0-1678003336009.png" alt="Ronein_0-1678003336009.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I want to see it like that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_1-1678003379636.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81075iF26D3DCE6CEBDDB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_1-1678003379636.png" alt="Ronein_1-1678003379636.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the code I run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=have;
class category/order=freq;
format category ;
var category   ;              ;
table category=' ' All='Total',
      n='Nr'*f=comma23. 
      pctn='PCT'*f=8.1
      category=' '*(sum='Sum_X'*f=comma23.1 pctsum='PCT_X'*f=8.1)/box='X'
   ;
run;
         &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What is the way to dispaly the Sum_X&amp;nbsp; in millions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 08:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862339#M340618</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-03-05T08:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display in millions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862346#M340622</link>
      <description>&lt;P&gt;Divide SUM_X by one million.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or create a PICTURE format to represent the value in millions. One nice thing with PICTURE formats is that they can be preceded by a $ character (if you want) and can have a suffix of M (if you want)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n0kl9qj532rbqln187us4ao371h7.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n0kl9qj532rbqln187us4ao371h7.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 09:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862346#M340622</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-05T09:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Display in millions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862348#M340624</link>
      <description>&lt;P&gt;Data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Custom format. The online documentation show one way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format;
picture millions (round)
 low-high = '00,000,000,009' (mult=0.000001);
run;

data junk;
   input x;
datalines;
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
;

proc print data=junk;
  format x millions.;
run;&lt;/PRE&gt;
&lt;P&gt;Did you even try anything that is pretty obviously a Proc Format question?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 10:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862348#M340624</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-05T10:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display in millions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862349#M340625</link>
      <description>&lt;P&gt;I have tried some codes&amp;nbsp;and all didn't work well&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;picture millions (fuzz=0)
   low-high='0000 M' ( mult=.000001)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;May you explain why you put&amp;nbsp; &amp;nbsp; 11 numbers?&lt;/P&gt;
&lt;PRE&gt;00,000,000,009&lt;/PRE&gt;
&lt;P&gt;May you explain why you used this number&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;.000001&lt;/CODE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 12:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862349#M340625</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-03-05T12:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display in millions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862351#M340627</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have tried some codes&amp;nbsp;and all didn't work well&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;picture millions (fuzz=0)
   low-high='0000 M' ( mult=.000001)
;
run;&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have to have enough space to show all the digits. Your code allows for just 4 places for digits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;May you explain why you used this number&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;.000001&lt;/CODE&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might remember that earlier in this thread, I suggest a simple method of getting the results you want, that was dividing by one million. Question for you: dividing by one million is the same as multiplying by ___________________.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May you explain why you put&amp;nbsp; &amp;nbsp; 11 numbers?&lt;/P&gt;
&lt;PRE&gt;00,000,000,009&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These things you can figure out for yourself by experimenting ... change the code from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; and see what happens.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 14:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-in-millions/m-p/862351#M340627</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-05T14:31:27Z</dc:date>
    </item>
  </channel>
</rss>

