<?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: SAS format to show integers without decimal period in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-format-to-show-integers-without-decimal-period/m-p/844261#M333776</link>
    <description>&lt;P&gt;I don't understand.&amp;nbsp; If you use the normal numeric format without specifying a number of decimal places it will not show the decimal point.&lt;/P&gt;
&lt;P&gt;For example if the integers are between 99,999 and -9,999 you could use the format 5.&lt;/P&gt;
&lt;PRE&gt;1240  data _null_;
1241    do i=-9999,-1 to 2,100,1000,10000,99999;
1242      put i 5.;
1243    end;
1244  run;

-9999
   -1
    0
    1
    2
  100
 1000
10000
99999
&lt;/PRE&gt;
&lt;P&gt;What do you want that is different?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 03:54:58 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-11-15T03:54:58Z</dc:date>
    <item>
      <title>SAS format to show integers without decimal period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-format-to-show-integers-without-decimal-period/m-p/844259#M333775</link>
      <description>&lt;P&gt;I have a basic dataset where values in variable A are grouped into categories in variable B.&lt;/P&gt;
&lt;P&gt;to do a quick check that the classification is working correctly, I could do a simple proc freq, but all the zero counts work against quick visual discernment. So proc tabulate is better. Call me pedantic, though, but I want to tabulate the Ns without the decimal.&lt;/P&gt;
&lt;P&gt;I thought that BESTDw.d would work (&lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001263753.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001263753.htm&lt;/A&gt;&amp;nbsp;) but it doesn't.&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input A B;
datalines;
25 2
16 2
11 1
13 1
17 2
14 2
23 2
18 2
21 2
23 2
21 2
14 2
13 1
19 2
12 1
17 2
25 2
24 2
14 2
14 2
18 2
22 2
14 2
16 2
13 1
12 1
6 1
12 1
14 2
18 2
7 1
6 1
13 1
9 1
15 2
14 2
10 1
20 2
25 2
5 1
11 1
32 3
26 2
22 2
23 2
21 2
18 2
33 3
;;
run;
proc format; picture nozero low--1,1-high=BESTD4. 0,.=" ";run;
proc tabulate data=have;
class a b;
table a, b*N=" "*f=nozero./row=float;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2022 03:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-format-to-show-integers-without-decimal-period/m-p/844259#M333775</guid>
      <dc:creator>JacquesR</dc:creator>
      <dc:date>2022-11-15T03:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS format to show integers without decimal period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-format-to-show-integers-without-decimal-period/m-p/844261#M333776</link>
      <description>&lt;P&gt;I don't understand.&amp;nbsp; If you use the normal numeric format without specifying a number of decimal places it will not show the decimal point.&lt;/P&gt;
&lt;P&gt;For example if the integers are between 99,999 and -9,999 you could use the format 5.&lt;/P&gt;
&lt;PRE&gt;1240  data _null_;
1241    do i=-9999,-1 to 2,100,1000,10000,99999;
1242      put i 5.;
1243    end;
1244  run;

-9999
   -1
    0
    1
    2
  100
 1000
10000
99999
&lt;/PRE&gt;
&lt;P&gt;What do you want that is different?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 03:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-format-to-show-integers-without-decimal-period/m-p/844261#M333776</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-15T03:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS format to show integers without decimal period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-format-to-show-integers-without-decimal-period/m-p/844274#M333778</link>
      <description>&lt;P&gt;Thanks Tom.&lt;/P&gt;
&lt;P&gt;I think if you had run my code, you would have seen, but your point did help me realise the flaw in my thinking (or is that, over-thinking):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; picture nozero 0,.=" ";run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So all I had to do was &lt;EM&gt;not&lt;/EM&gt; specify a format for anything other than zeros or missings.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 04:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-format-to-show-integers-without-decimal-period/m-p/844274#M333778</guid>
      <dc:creator>JacquesR</dc:creator>
      <dc:date>2022-11-15T04:33:45Z</dc:date>
    </item>
  </channel>
</rss>

