<?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: How to keep the last &amp;quot;0&amp;quot; in a string? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106270#M29599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;17&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;18&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0.0501&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;19&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put p=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;pvalue5.3&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;20&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;p=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0.050&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 16:21:37 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2013-04-12T16:21:37Z</dc:date>
    <item>
      <title>How to keep the last "0" in a string?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106269#M29598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I was creating a statistical report and wanted to have a p-value with 3 digits.&lt;/P&gt;&lt;P&gt;I got p=0.0501, but if I rounded it to 0.001 then I would have a p=0.05. How can I keep the last zero?&lt;/P&gt;&lt;P&gt;I used compress or compbl to make it into a string, but they did not work.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 16:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106269#M29598</guid>
      <dc:creator>Ken_oy</dc:creator>
      <dc:date>2013-04-12T16:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the last "0" in a string?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106270#M29599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;17&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;18&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0.0501&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;19&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put p=&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;pvalue5.3&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;20&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;p=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;0.050&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 16:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106270#M29599</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-04-12T16:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the last "0" in a string?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106271#M29600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For most purposes assigning a format with the appropriate number of decimal points will display as you want. I would suggest an f5.3. The internal storage of the value doesn't change just the display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example:&lt;/P&gt;&lt;P&gt;data _null_;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;file print;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; x = 0.05;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; put x f6.3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 16:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106271#M29600</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-04-12T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the last "0" in a string?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106272#M29601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@data_null and @ballardw, thanks for the quick reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one more question. If I want to put "0.050" in a string, for example I may try to use "call symput" to make a &amp;amp;pvalue=0.050, then how can I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 16:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106272#M29601</guid>
      <dc:creator>Ken_oy</dc:creator>
      <dc:date>2013-04-12T16:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the last "0" in a string?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106273#M29602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PUT function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 16:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-keep-the-last-quot-0-quot-in-a-string/m-p/106273#M29602</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-04-12T16:43:08Z</dc:date>
    </item>
  </channel>
</rss>

