<?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: help with simple formatting in proc tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/help-with-simple-formatting-in-proc-tabulate/m-p/61797#M17535</link>
    <description>Hi &lt;BR /&gt;
Below the closest I could figure out.&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
  picture r10x  (round)&lt;BR /&gt;
    low-high = "00000009 D"(mult=0.1 )&lt;BR /&gt;
  ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data have(keep=j);&lt;BR /&gt;
  do j=1 to 5;&lt;BR /&gt;
    x=ceil(ranuni(8)*100);&lt;BR /&gt;
    do i=1 to x;&lt;BR /&gt;
      output;&lt;BR /&gt;
    end;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
title1 'unformatted values';&lt;BR /&gt;
proc tabulate data=have ;&lt;BR /&gt;
  class j;&lt;BR /&gt;
  table j;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
title1 'rounded to the next 10';&lt;BR /&gt;
proc tabulate data=have ;&lt;BR /&gt;
  class j;&lt;BR /&gt;
  table j  *f=r10x.;&lt;BR /&gt;
run;</description>
    <pubDate>Fri, 26 Feb 2010 13:42:37 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2010-02-26T13:42:37Z</dc:date>
    <item>
      <title>help with simple formatting in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-with-simple-formatting-in-proc-tabulate/m-p/61796#M17534</link>
      <description>I'm sure this should be simple and I just don't know the syntax.&lt;BR /&gt;
&lt;BR /&gt;
I've managed to use proc tabulate to produce tables just the way we need them except that I need to round the N values to the nearest 10 and I'm not sure how to. &lt;BR /&gt;
&lt;BR /&gt;
My table statement for proc tabulate is this:&lt;BR /&gt;
&lt;BR /&gt;
table (sex all)*(l7drdays all),wt07*(age all)*pctsum&lt;L7DRDAYS all=""&gt; (age all)*wt07 (age all)*n;&lt;BR /&gt;
&lt;BR /&gt;
and I think I'll just need to add *f ='something' to the end of (age all)*n - I just don't know what the 'something' should be for this formatting. Would really appreciate it if someone could help!&lt;BR /&gt;
&lt;BR /&gt;
Nicola&lt;/L7DRDAYS&gt;</description>
      <pubDate>Wed, 24 Feb 2010 17:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-with-simple-formatting-in-proc-tabulate/m-p/61796#M17534</guid>
      <dc:creator>NicolaD</dc:creator>
      <dc:date>2010-02-24T17:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: help with simple formatting in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-with-simple-formatting-in-proc-tabulate/m-p/61797#M17535</link>
      <description>Hi &lt;BR /&gt;
Below the closest I could figure out.&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
  picture r10x  (round)&lt;BR /&gt;
    low-high = "00000009 D"(mult=0.1 )&lt;BR /&gt;
  ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data have(keep=j);&lt;BR /&gt;
  do j=1 to 5;&lt;BR /&gt;
    x=ceil(ranuni(8)*100);&lt;BR /&gt;
    do i=1 to x;&lt;BR /&gt;
      output;&lt;BR /&gt;
    end;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
title1 'unformatted values';&lt;BR /&gt;
proc tabulate data=have ;&lt;BR /&gt;
  class j;&lt;BR /&gt;
  table j;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
title1 'rounded to the next 10';&lt;BR /&gt;
proc tabulate data=have ;&lt;BR /&gt;
  class j;&lt;BR /&gt;
  table j  *f=r10x.;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 26 Feb 2010 13:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-with-simple-formatting-in-proc-tabulate/m-p/61797#M17535</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-02-26T13:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: help with simple formatting in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-with-simple-formatting-in-proc-tabulate/m-p/61798#M17536</link>
      <description>use Patrick's technique, or adapt it, if O is close enough to 0 &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
proc format;&lt;BR /&gt;
picture r10x (round)&lt;BR /&gt;
low-high = "00000009O"(mult=0.1 )&lt;BR /&gt;
;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 01 Mar 2010 13:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-with-simple-formatting-in-proc-tabulate/m-p/61798#M17536</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-03-01T13:51:27Z</dc:date>
    </item>
  </channel>
</rss>

