<?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: Create a macro list after Proc Freq? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-a-macro-list-after-Proc-Freq/m-p/934141#M367358</link>
    <description>&lt;P&gt;I strongly suggest providing an example data set and then show us which of the percentages that will appear in&amp;nbsp; Lab_id that you are asking about.&lt;/P&gt;
&lt;P&gt;Here is an example of creating a data set with the output percentages that you should be able to run to see what I mean:&lt;/P&gt;
&lt;PRE&gt;proc freq data=sashelp.cars ;
  table origin*make*type/out=work.percent outpct ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it may be time to discuss how you intend to use that list of variables. it may be better to generate a data set(hint: likely needed for the macro approach) and use the values in the data set.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 19:17:00 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-06-28T19:17:00Z</dc:date>
    <item>
      <title>Create a macro list after Proc Freq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-macro-list-after-Proc-Freq/m-p/934139#M367356</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a proc freq program list below. I would like to create a macro list for the LabIDs, the percentage of which is over 5%.&amp;nbsp; Is there a way to do so?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sample;
table LabIDs*test_order_codes*test_result_codes / list missing;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jun 2024 19:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-macro-list-after-Proc-Freq/m-p/934139#M367356</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2024-06-28T19:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro list after Proc Freq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-macro-list-after-Proc-Freq/m-p/934141#M367358</link>
      <description>&lt;P&gt;I strongly suggest providing an example data set and then show us which of the percentages that will appear in&amp;nbsp; Lab_id that you are asking about.&lt;/P&gt;
&lt;P&gt;Here is an example of creating a data set with the output percentages that you should be able to run to see what I mean:&lt;/P&gt;
&lt;PRE&gt;proc freq data=sashelp.cars ;
  table origin*make*type/out=work.percent outpct ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it may be time to discuss how you intend to use that list of variables. it may be better to generate a data set(hint: likely needed for the macro approach) and use the values in the data set.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 19:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-macro-list-after-Proc-Freq/m-p/934141#M367358</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-06-28T19:17:00Z</dc:date>
    </item>
  </channel>
</rss>

