<?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 Option in proc freq for getting multiple variables in a proc freq in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Option-in-proc-freq-for-getting-multiple-variables-in-a-proc/m-p/619146#M5979</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=rawdata noprint;&lt;BR /&gt;table &lt;STRONG&gt;year_cat&lt;/STRONG&gt; * &lt;STRONG&gt;A--P&amp;nbsp;&lt;/STRONG&gt; / trend norow nocol nopercent out=Output_of_trend;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a code as written above.&amp;nbsp; I would like to produce the count result of all the variables from A to P such that it all gets to store in&amp;nbsp; output year_cat dataset. Is there any direct ODS option or any other method in sas to avail that.&lt;/P&gt;
&lt;P&gt;under year-cat column i have multiple year categories like (2010-2012), (2013-2014), (2015-2018), (2019-2020)...... and multiple columns like A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P . So i have used &lt;STRONG&gt;A--P. &lt;/STRONG&gt;But when i run the code it only captures results produced from year_cat*P in my output dataset where as in the result window it captures for all the variables from A to P.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly share if any one knows any shortcut way by ODS or any other options&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 13:22:49 GMT</pubDate>
    <dc:creator>sahoositaram555</dc:creator>
    <dc:date>2020-01-22T13:22:49Z</dc:date>
    <item>
      <title>Option in proc freq for getting multiple variables in a proc freq</title>
      <link>https://communities.sas.com/t5/Developers/Option-in-proc-freq-for-getting-multiple-variables-in-a-proc/m-p/619146#M5979</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=rawdata noprint;&lt;BR /&gt;table &lt;STRONG&gt;year_cat&lt;/STRONG&gt; * &lt;STRONG&gt;A--P&amp;nbsp;&lt;/STRONG&gt; / trend norow nocol nopercent out=Output_of_trend;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a code as written above.&amp;nbsp; I would like to produce the count result of all the variables from A to P such that it all gets to store in&amp;nbsp; output year_cat dataset. Is there any direct ODS option or any other method in sas to avail that.&lt;/P&gt;
&lt;P&gt;under year-cat column i have multiple year categories like (2010-2012), (2013-2014), (2015-2018), (2019-2020)...... and multiple columns like A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P . So i have used &lt;STRONG&gt;A--P. &lt;/STRONG&gt;But when i run the code it only captures results produced from year_cat*P in my output dataset where as in the result window it captures for all the variables from A to P.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly share if any one knows any shortcut way by ODS or any other options&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 13:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Option-in-proc-freq-for-getting-multiple-variables-in-a-proc/m-p/619146#M5979</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2020-01-22T13:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Option in proc freq for getting multiple variables in a proc freq</title>
      <link>https://communities.sas.com/t5/Developers/Option-in-proc-freq-for-getting-multiple-variables-in-a-proc/m-p/619154#M5980</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/109034"&gt;@sahoositaram555&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;EM&gt;ODS&lt;/EM&gt; output datasets will contain the information from all tables &lt;FONT face="courier new,courier"&gt;year_cat * A&lt;/FONT&gt;, ..., &lt;FONT face="courier new,courier"&gt;year_cat * P&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;
ods output crosstabfreqs=freqs(drop=_table_ percent rowpercent colpercent)
           trendtest=trendtests;
proc freq data=rawdata;
table year_cat * A--P  / trend;
run;
ods select all;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jan 2020 14:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Option-in-proc-freq-for-getting-multiple-variables-in-a-proc/m-p/619154#M5980</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-01-22T14:04:48Z</dc:date>
    </item>
  </channel>
</rss>

