<?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 Formating as thousands with rounding in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Formating-as-thousands-with-rounding/m-p/177625#M45451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to print values like 1360 as 1.4 (thousand). Can this be done with formats, or do I have to calculate values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg the following code, gives an output of &lt;/P&gt;&lt;P&gt;v1=1.3 v2=1.4&lt;/P&gt;&lt;P&gt;But I want v1 to look like v2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;picture thousands low-high='000,000,000.9' (mult=.01);&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;v1 = 1360;&lt;/P&gt;&lt;P&gt;v2 = v1/1000;&lt;/P&gt;&lt;P&gt;format v1 thousands.;&lt;/P&gt;&lt;P&gt;format v2 comma10.1;&lt;/P&gt;&lt;P&gt;put v1= v2=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 04:20:56 GMT</pubDate>
    <dc:creator>BruceBrad</dc:creator>
    <dc:date>2014-10-09T04:20:56Z</dc:date>
    <item>
      <title>Formating as thousands with rounding</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formating-as-thousands-with-rounding/m-p/177625#M45451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to print values like 1360 as 1.4 (thousand). Can this be done with formats, or do I have to calculate values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg the following code, gives an output of &lt;/P&gt;&lt;P&gt;v1=1.3 v2=1.4&lt;/P&gt;&lt;P&gt;But I want v1 to look like v2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;picture thousands low-high='000,000,000.9' (mult=.01);&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;v1 = 1360;&lt;/P&gt;&lt;P&gt;v2 = v1/1000;&lt;/P&gt;&lt;P&gt;format v1 thousands.;&lt;/P&gt;&lt;P&gt;format v2 comma10.1;&lt;/P&gt;&lt;P&gt;put v1= v2=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 04:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formating-as-thousands-with-rounding/m-p/177625#M45451</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2014-10-09T04:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formating as thousands with rounding</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formating-as-thousands-with-rounding/m-p/177626#M45452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps something like this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: Consolas;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: Consolas;"&gt;format&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: Consolas; font-size: 9pt;"&gt;picture&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt; thousands (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: Consolas; font-size: 9pt;"&gt;ROUND&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;LOW-&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: Consolas;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: Consolas; font-size: 9pt;"&gt;'000,000,000,009.9'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: Consolas; font-size: 9pt;"&gt;PREFIX&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: Consolas; font-size: 9pt;"&gt;'-'&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: Consolas; font-size: 9pt;"&gt;MULT&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: Consolas;"&gt;0.001&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: Consolas;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;-HIGH = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: Consolas; font-size: 9pt;"&gt;'000,000,000,009.9'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: Consolas; font-size: 9pt;"&gt;MULT&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 9pt; background: white; font-family: Consolas;"&gt;0.001&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 9pt; background: white; font-family: Consolas;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: Consolas; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 04:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formating-as-thousands-with-rounding/m-p/177626#M45452</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-10-09T04:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Formating as thousands with rounding</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formating-as-thousands-with-rounding/m-p/177627#M45453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Almost) perfect. I had missed the Round option. But (as I've just realised after testing) not quite correct. The mult options should be 0.01 not 0.001 to get thousands when you have one decimal place. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the format should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt; picture thousands (ROUND)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LOW-&amp;lt;0&amp;nbsp; = '000,000,000,009.9'&amp;nbsp; (PREFIX='-' MULT=0.01)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 0-HIGH = '000,000,000,009.9'&amp;nbsp; (MULT=0.01); &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 04:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formating-as-thousands-with-rounding/m-p/177627#M45453</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2014-10-09T04:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formating as thousands with rounding</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formating-as-thousands-with-rounding/m-p/177628#M45454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this discussion&amp;nbsp; &lt;A __default_attr="60104" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/"&gt;&lt;/A&gt; it shows how to create your own rounding function, and then package this into a format. For your example, I guess you need to divide the rounded value by 1000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 07:21:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formating-as-thousands-with-rounding/m-p/177628#M45454</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2014-10-09T07:21:36Z</dc:date>
    </item>
  </channel>
</rss>

