<?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: Proc Freq-Conditionals? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80270#M23116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Automating the solution is the hard part.&amp;nbsp; Here's an approach ... I'm hoping someone else can come up with the code because I don't think I'll have the time to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Run your PROC FREQ, but don't print the results.&amp;nbsp; Instead, send the results to an output data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Subset the output data set, taking all those observations having COUNT &amp;lt; 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Prepare that subset to become a format:&amp;nbsp; add FMTNAME and LABEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Create the format using the step 3 results as a CNTLIN= data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Re-run PROC FREQ, applying the format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be smaller issues ... what will happen if all the original counts are 5 or more?&amp;nbsp; And the order of the rows&amp;nbsp; in the table might change.&amp;nbsp; (It's even possible that the Other category will have the highest count and will print first.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But at least there's an approach to work with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2013 14:57:50 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2013-09-12T14:57:50Z</dc:date>
    <item>
      <title>Proc Freq-Conditionals?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80267#M23113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to group "noisy" insignificant observations into one single variable so that I can focus on the observations that really matter. I have been looking to see if I can use conditionals with proc freq. The logic I am trying to implement is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"if a host appears less than five times group into 'other'" &lt;/P&gt;&lt;P&gt;Basically regroup all hosts that appear less than five times into a single variable named "other"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the table listed below, but I would like to group yahoo and aol into "other"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data host_list;&lt;/P&gt;&lt;P&gt;input host $;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;amazon&lt;/P&gt;&lt;P&gt;amazon&lt;/P&gt;&lt;P&gt;amazon&lt;/P&gt;&lt;P&gt;amazon&lt;/P&gt;&lt;P&gt;amazon&lt;/P&gt;&lt;P&gt;google&lt;/P&gt;&lt;P&gt;google&lt;/P&gt;&lt;P&gt;google&lt;/P&gt;&lt;P&gt;google&lt;/P&gt;&lt;P&gt;google&lt;/P&gt;&lt;P&gt;aol&lt;/P&gt;&lt;P&gt;yahoo&lt;/P&gt;&lt;P&gt;yahoo&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=host_list order=freq;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="table-layout: fixed;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: #BBBBBB; padding: 0 3.0pt 0 3.0pt;" valign="top" width="59"&gt;&lt;P style="margin: 3pt 0px;"&gt;&lt;STRONG style="color: black; font-size: 11.0pt;"&gt;amazon&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="76"&gt;&lt;P align="right" style="margin: 3pt 0px; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="61"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: black;"&gt;38.46&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="83"&gt;&lt;P align="right" style="margin: 3pt 0px; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="84"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: black;"&gt;38.46&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: #BBBBBB; padding: 0 3.0pt 0 3.0pt;" valign="top" width="59"&gt;&lt;P style="margin: 3pt 0px;"&gt;&lt;STRONG style="color: black; font-size: 11.0pt;"&gt;google&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="76"&gt;&lt;P align="right" style="margin: 3pt 0px; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="61"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: black;"&gt;38.46&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="83"&gt;&lt;P align="right" style="margin: 3pt 0px; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="84"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: black;"&gt;76.92&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: #BBBBBB; padding: 0 3.0pt 0 3.0pt;" valign="top" width="59"&gt;&lt;P style="margin: 3pt 0px;"&gt;&lt;STRONG style="color: black; font-size: 11.0pt;"&gt;yahoo&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="76"&gt;&lt;P align="right" style="margin: 3pt 0px; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="61"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: black;"&gt;15.38&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="83"&gt;&lt;P align="right" style="margin: 3pt 0px; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="84"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: black;"&gt;92.31&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: #BBBBBB; padding: 0 3.0pt 0 3.0pt;" valign="top" width="59"&gt;&lt;P style="margin: 3pt 0px;"&gt;&lt;STRONG style="color: black; font-size: 11.0pt;"&gt;aol&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="76"&gt;&lt;P align="right" style="margin: 3pt 0px; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="61"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: black;"&gt;7.69&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: solid black 1.0pt; border-bottom: solid black 1.0pt; border-right: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="83"&gt;&lt;P align="right" style="margin: 3pt 0px; text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;13&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; background: white; padding: 0 3.0pt 0 3.0pt;" valign="top" width="84"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: black;"&gt;100.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 13:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80267#M23113</guid>
      <dc:creator>Greek</dc:creator>
      <dc:date>2013-09-12T13:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq-Conditionals?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80268#M23114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you could do it in proc freq, you could add&lt;/P&gt;&lt;P&gt;if host in ('yahoo','aol') then host='other' in your data step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 14:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80268#M23114</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2013-09-12T14:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq-Conditionals?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80269#M23115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a custom format that just assigns the unwanted to that category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc format;&lt;/P&gt;&lt;P&gt;value $oth (upcase)&lt;/P&gt;&lt;P&gt;'YAHOO','AOL'='other';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/* the UPCASE is in case your actual data has different capitalization of the words, the option compares the all caps version to assign the 'other' text */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=host_list order=freq;&lt;/P&gt;&lt;P&gt;format host $oth.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 14:43:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80269#M23115</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-09-12T14:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq-Conditionals?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80270#M23116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Automating the solution is the hard part.&amp;nbsp; Here's an approach ... I'm hoping someone else can come up with the code because I don't think I'll have the time to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Run your PROC FREQ, but don't print the results.&amp;nbsp; Instead, send the results to an output data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Subset the output data set, taking all those observations having COUNT &amp;lt; 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Prepare that subset to become a format:&amp;nbsp; add FMTNAME and LABEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Create the format using the step 3 results as a CNTLIN= data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Re-run PROC FREQ, applying the format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be smaller issues ... what will happen if all the original counts are 5 or more?&amp;nbsp; And the order of the rows&amp;nbsp; in the table might change.&amp;nbsp; (It's even possible that the Other category will have the highest count and will print first.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But at least there's an approach to work with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 14:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80270#M23116</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-09-12T14:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq-Conditionals?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80271#M23117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something data driven wouldn't you say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; host_list;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; host $;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;datalines&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;amazon&lt;BR /&gt;amazon&lt;BR /&gt;amazon&lt;BR /&gt;amazon&lt;BR /&gt;amazon&lt;BR /&gt;google&lt;BR /&gt;google&lt;BR /&gt;google&lt;BR /&gt;google&lt;BR /&gt;google&lt;BR /&gt;aol&lt;BR /&gt;yahoo&lt;BR /&gt;yahoo&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;freq&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=host_list &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=freq;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;tables&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; host / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=counts;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;noprint&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; host &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; :other separated by &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;', '&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; counts &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; count lt &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; fold;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; counts;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; count lt &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; host = &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'Other'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;freq&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=fold &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=data;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;weight&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; count;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;tables&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; host;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;Footnote&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"NOTE: Other includes: &amp;amp;other"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;footnote&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: data _null_&#xD;
driveN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 14:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Conditionals/m-p/80271#M23117</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-09-12T14:58:34Z</dc:date>
    </item>
  </channel>
</rss>

