<?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: enforce format DEFINE mypercent / '%' format=f12.1; in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/enforce-format-DEFINE-mypercent-format-f12-1/m-p/229851#M14477</link>
    <description>&lt;P&gt;Hi Cynthia,&lt;BR /&gt;Thanks for your reply! Indeed, it is MS Excel cutting off the 0 &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The format=nlnum32.2; format worked, MS Excel did not cut off the zero's.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2015 07:47:33 GMT</pubDate>
    <dc:creator>metallon</dc:creator>
    <dc:date>2015-10-14T07:47:33Z</dc:date>
    <item>
      <title>enforce format DEFINE mypercent / '%' format=f12.1;</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/enforce-format-DEFINE-mypercent-format-f12-1/m-p/229722#M14473</link>
      <description>&lt;P&gt;Hello SAS Experts,&lt;/P&gt;
&lt;P&gt;I have applied&amp;nbsp; format=f12.1; to my proc report column but if there are no decimal places then no formatting happens.&lt;/P&gt;
&lt;P&gt;How can I enforce that even if there is no decimal place I can read 100,0 or 90,0 and not just 100 and 90?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;,&amp;nbsp; I know it might be a strange thing to do to make up information on decimals which isnt there but this is an aesthetic requirement by the end user, I cant help it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 15:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/enforce-format-DEFINE-mypercent-format-f12-1/m-p/229722#M14473</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-10-13T15:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: enforce format DEFINE mypercent / '%' format=f12.1;</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/enforce-format-DEFINE-mypercent-format-f12-1/m-p/229843#M14476</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This is almost acting like the BEST format is being used instead of the format you specified. If you run the attached code, you can see the difference between using a format and using the BEST format (which is what most SAS procedures default to).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You did not post any data or your full code or your destination of interest. Another possibility is that you are opening the output in Excel and Excel is losing the format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This code correctly shows the 1 decimal place for the values for HEIGHT and WEIGHT and the use of the BEST format shows the decimal place not being used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So without knowing more about your code and your destination, perhaps this will point you in the right direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; proc report data=sashelp.class nowd;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; column name age sex height weight height=htbsfmt weight=wtbsfmt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; define name / order;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; define height / f=12.1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; define weight / f=12.1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; define htbsfmt / f=best12.1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; define wtbsfmt /f=best12.1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 05:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/enforce-format-DEFINE-mypercent-format-f12-1/m-p/229843#M14476</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-10-14T05:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: enforce format DEFINE mypercent / '%' format=f12.1;</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/enforce-format-DEFINE-mypercent-format-f12-1/m-p/229851#M14477</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;BR /&gt;Thanks for your reply! Indeed, it is MS Excel cutting off the 0 &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The format=nlnum32.2; format worked, MS Excel did not cut off the zero's.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 07:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/enforce-format-DEFINE-mypercent-format-f12-1/m-p/229851#M14477</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-10-14T07:47:33Z</dc:date>
    </item>
  </channel>
</rss>

