<?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: remove trailing zeros for all decimal numeric feilds in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/462498#M20959</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140721"&gt;@Melk&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have a dataset that I want to remove the trailing zeros for all decimal numeric variables. Is there any easy way to do this? I used the best and it did not work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Doesn't work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide &lt;STRONG&gt;input data in the form of data step code pasted into a code box&lt;/STRONG&gt;, &lt;STRONG&gt;the actual results and the expected results&lt;/STRONG&gt;. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat&lt;/A&gt;... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it is we are having to guess what "did not work".&lt;/P&gt;</description>
    <pubDate>Tue, 15 May 2018 19:57:59 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-05-15T19:57:59Z</dc:date>
    <item>
      <title>remove trailing zeros for all decimal numeric feilds</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/462432#M20956</link>
      <description>&lt;P&gt;I have a dataset that I want to remove the trailing zeros for all decimal numeric variables. Is there any easy way to do this? I used the best and it did not work.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 17:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/462432#M20956</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-05-15T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: remove trailing zeros for all decimal numeric feilds</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/462445#M20957</link>
      <description>&lt;P&gt;Addapt the format of the numeric variables to showm required decimal digits.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 18:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/462445#M20957</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-05-15T18:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: remove trailing zeros for all decimal numeric feilds</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/462450#M20958</link>
      <description>&lt;P&gt;No, there's no easy way.&amp;nbsp; If you want to spend a lot of time for a limited result that approximates what you are asking for, here's a program you can fiddle with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;/P&gt;
&lt;P&gt;value nozero 0=' 0' 1=' 1' 2=' 2' 3=' 3' 4=' 4' 5=' 5' 6=' 6' 7=' 7' 8=' 8' 9=' 9' 10='10' 11='11' other=[5.2];&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;do j=1 to 11 by 0.01;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;proc print data=test;&lt;/P&gt;
&lt;P&gt;format j nozero.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 18:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/462450#M20958</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-05-15T18:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: remove trailing zeros for all decimal numeric feilds</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/462498#M20959</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140721"&gt;@Melk&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have a dataset that I want to remove the trailing zeros for all decimal numeric variables. Is there any easy way to do this? I used the best and it did not work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Doesn't work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide &lt;STRONG&gt;input data in the form of data step code pasted into a code box&lt;/STRONG&gt;, &lt;STRONG&gt;the actual results and the expected results&lt;/STRONG&gt;. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat&lt;/A&gt;... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it is we are having to guess what "did not work".&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 19:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/462498#M20959</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-15T19:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: remove trailing zeros for all decimal numeric feilds</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/463408#M20966</link>
      <description>&lt;P&gt;Horrible solution I came up with for this thread, but I just ended up fixing it in the excel format and re-imported..&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 17:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-trailing-zeros-for-all-decimal-numeric-feilds/m-p/463408#M20966</guid>
      <dc:creator>Melk</dc:creator>
      <dc:date>2018-05-18T17:48:13Z</dc:date>
    </item>
  </channel>
</rss>

