<?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: round problem in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88036#M25149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must associate a format to the variable, with the statement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format note 6.1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you insert that statement in your datastep, the format will be permanently associated to the variable. If you put the format statement in the proc print call it will be associated only for the duration of the procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2012 12:24:19 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-10-06T12:24:19Z</dc:date>
    <item>
      <title>round problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88035#M25148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i'm a beginner in SAS, and i have a problem with the function ROUND !&lt;/P&gt;&lt;P&gt;If I create toto table :&lt;/P&gt;&lt;P&gt;data toto;&lt;/P&gt;&lt;P&gt;input Annee Note Bac $; /* JAMAIS d'accent */&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;97 12.025 A&lt;/P&gt;&lt;P&gt;98 13.075 A&lt;/P&gt;&lt;P&gt;97 9.045&amp;nbsp; B&lt;/P&gt;&lt;P&gt;98 8.250&amp;nbsp; A&lt;/P&gt;&lt;P&gt;97 7.685&amp;nbsp; C&lt;/P&gt;&lt;P&gt;98 10.554 C&lt;/P&gt;&lt;P&gt;97 14.895 B&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i want to print only Note var with rounding !&lt;/P&gt;&lt;P&gt;so : &lt;/P&gt;&lt;P&gt;title "Exemple d'édition de certaines variables";&lt;/P&gt;&lt;P&gt;proc print data=toto noobs round;&lt;/P&gt;&lt;P&gt;var note bac;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gives a 0.01 default rounding &lt;/P&gt;&lt;P&gt;but what if i want a 0.1 roundinf for example ?&lt;/P&gt;&lt;P&gt;i have so many syntax errors that i'm a bit upset now &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 10:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88035#M25148</guid>
      <dc:creator>frenchy_robert</dc:creator>
      <dc:date>2012-10-06T10:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: round problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88036#M25149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must associate a format to the variable, with the statement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format note 6.1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you insert that statement in your datastep, the format will be permanently associated to the variable. If you put the format statement in the proc print call it will be associated only for the duration of the procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 12:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88036#M25149</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-10-06T12:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: round problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88037#M25150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc print data=toto noobs round;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format note 4.1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var note bac;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 12:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88037#M25150</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-10-06T12:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: round problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88038#M25151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks to you two &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Now it works !&lt;/P&gt;&lt;P&gt;Can you explain me the meaning of 4.1 or 6.1 ? Is there a number for each rounding ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 13:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88038#M25151</guid>
      <dc:creator>frenchy_robert</dc:creator>
      <dc:date>2012-10-06T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: round problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88039#M25152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in format 6.1, or more generally w.d, w is the width of the field and d is the number of decimals. Check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/leforinforref/63324/HTML/default/viewer.htm#n1n7bmvs1brl23n1dj9cbzau39df.htm"&gt;http://support.sas.com/documentation/cdl/en/leforinforref/63324/HTML/default/viewer.htm#n1n7bmvs1brl23n1dj9cbzau39df.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are LOTS of formats available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 14:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88039#M25152</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-10-06T14:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: round problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88040#M25153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay !&lt;/P&gt;&lt;P&gt;thanks for all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hu i have another question, but i guess i have to create another topic instead of asking here because this is about something else :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 14:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/round-problem/m-p/88040#M25153</guid>
      <dc:creator>frenchy_robert</dc:creator>
      <dc:date>2012-10-06T14:42:04Z</dc:date>
    </item>
  </channel>
</rss>

