<?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: How to customise the output? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103447#M9787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at PG's solution and the table that gets outputted, OWF. What you want is in that table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Paige however, your question is unclear, so the suggestions your getting are guesses. Clarify your request. My guess is you're looking for the total C rather than the count of any cell, so you're actually looking for a row or column total that you would see in proc freq. You can get that in the solution PG has posted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 17:08:17 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-02-08T17:08:17Z</dc:date>
    <item>
      <title>How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103435#M9775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the proq freq&amp;nbsp; to get the occurences for certain values that happens for each of the 4 variable of interest. These 4 fields(variables) have the same sets of values. I want to get in my output only the frequencies for these values only. How can I do this if I am looking at all 4 variables at the time.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking at variables:&lt;/P&gt;&lt;P&gt;A (can take values a,b,c.d,e)&lt;/P&gt;&lt;P&gt;B (can take values a,b,c.d,e)&lt;/P&gt;&lt;P&gt;C( can take values a,b,c.d,e)&lt;/P&gt;&lt;P&gt;D( can take values a,b,c.d,e)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/SPAN&gt; the frequency of value "c" occuring in all 4 vb. (A,B,C,D) in the output. how can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 15:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103435#M9775</guid>
      <dc:creator>DMP</dc:creator>
      <dc:date>2013-02-08T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103436#M9776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have PROC FREQ create an output data set, then select only the values where the variable has value c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 15:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103436#M9776</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-02-08T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103437#M9777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is exactly ewhat I am doing the problem is the the variable(s) has&amp;nbsp; about 1000 values and if I look at all 4 vb at once it will give me the freq for the occurence of one value but also the occurence of the values for the other 3 vb when one vb has the value of interest. I mean when I have vb A= "c", vb Bwill be ="a" and C="d"&amp;nbsp; and so for. When I do Proq Freq it gives me for var A let's say, the frequence for value"c" but also frequences fo all other values when the other var (B,C,D) are equal "c". I am doing it in excel but is to time consuming and it should be a smarter way to do this in SAS only I don't know it...:( &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 15:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103437#M9777</guid>
      <dc:creator>DMP</dc:creator>
      <dc:date>2013-02-08T15:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103438#M9778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help to see your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be nothing more difficult than in a DATA step after PROC FREQ, selecting only the case where A='c' and B='c' and C='c' and D='c'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 15:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103438#M9778</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-02-08T15:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103439#M9779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;here's the code I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FREQ DATA = SASUSER.MY_08DATA_Feb7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDER=INTERNAL;&lt;/P&gt;&lt;P&gt;Title’’;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BY FACILITY_PROV_CODE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLES MAIN_PROBLEM&amp;nbsp;&amp;nbsp; OTHER_PROBLEM_1&amp;nbsp; OTHER_PROBLEM_2&amp;nbsp; OTHER_PROBLEM_3 OTHER_PROBLEM_4/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; missing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOROW&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOCOL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOPERCENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOCUM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCORES=TABLE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ALPHA=0.05;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where (MAIN_PROBLEM = 'T424'&amp;nbsp;&amp;nbsp; or OTHER_PROBLEM_1 = 'T424'&amp;nbsp; or OTHER_PROBLEM_2 = 'T424' OR&amp;nbsp;&amp;nbsp; OTHER_PROBLEM_3 = 'T424' or OTHER_PROBLEM_4 ='T424') and AGE_CODE='Y' and AGE_UNITS LT 55;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RUN; QUIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you mean by selecting these in a data step after proq freq?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 15:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103439#M9779</guid>
      <dc:creator>DMP</dc:creator>
      <dc:date>2013-02-08T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103440#M9780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc freq data=whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by facility_prov_code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables a/out=var_a_freq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data var_a_freq;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set var_a_freq;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where a='c';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 15:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103440#M9780</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-02-08T15:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103441#M9781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;DMP wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I want &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/SPAN&gt; the frequency of value "c" occuring in all 4 vb. (A,B,C,D) in the output. how can I do this?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;You put an OR in your code, assuming you want A=B=C=D you want an AND in your where clause instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 16:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103441#M9781</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-02-08T16:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103442#M9782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is giving me the occurence of "c" only as value of variable A. But if I have to add up the occurences of "c" as values of A and B and C And D?&lt;BR /&gt;It's like adding the occurences of "c" for the cases specified&amp;nbsp; in where.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 16:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103442#M9782</guid>
      <dc:creator>DMP</dc:creator>
      <dc:date>2013-02-08T16:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103443#M9783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I request at this time that you provide much more specificity about what the desired output is. As in, &lt;STRONG&gt;give an example of the output you want&lt;/STRONG&gt;. Your words do not convey to me exactly what you are trying to achieve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 16:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103443#M9783</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-02-08T16:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103444#M9784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this is closer to what you want :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;data test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;length A B C D $1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;input (A B C D) ($1.) @@;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;if cmiss(A,B,C,D)=0;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;datalines;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;abcdedbbcdeabcedeacbdeaceccabedaddea&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;ods select none;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;proc freq data=test;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;table A B C D;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;ods output OneWayfreqs=owf;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;ods select all;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;data cFreq;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;keep var frequency;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;set owf;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;if cats(of f_:)="c";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;var = substr(table,7);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;proc print data=cfreq; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 16:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103444#M9784</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-02-08T16:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103445#M9785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with my code I get 4 tables (one for each variable) that are each hundreds of items long , containing the frequencies for each value occuring&amp;nbsp; when one of the condition under where clause is true . In order to get my counts for the value of interest ("c") occuring in all 4 vb. I manually combine these 4 output tables and sort the combined table in order to get the 4 values of "c"-frequency (one for each variable that I am monitoring).&lt;/P&gt;&lt;P&gt;How can I do this with SAS so that I am not spending hours to set up these excel tables to extract only the occurences of 'c' in all 4 variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 16:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103445#M9785</guid>
      <dc:creator>DMP</dc:creator>
      <dc:date>2013-02-08T16:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103446#M9786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not what I asked for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want a word description. I don't think I can work from your word descriptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to see an example of the resulting table that you wish to get.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 16:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103446#M9786</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-02-08T16:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103447#M9787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at PG's solution and the table that gets outputted, OWF. What you want is in that table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Paige however, your question is unclear, so the suggestions your getting are guesses. Clarify your request. My guess is you're looking for the total C rather than the count of any cell, so you're actually looking for a row or column total that you would see in proc freq. You can get that in the solution PG has posted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 17:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103447#M9787</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-02-08T17:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103448#M9788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please see the attached doc.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11391i97F93FB6FB8568B8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Tables.jpg" title="Tables.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 17:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103448#M9788</guid>
      <dc:creator>DMP</dc:creator>
      <dc:date>2013-02-08T17:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103449#M9789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see how the "what you'd like to get" relates to the tables you are currently getting, nor do I see how the "what you'd like to get" relates to your original problem description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the "what you'd like to get" a sum of frequencies? That's my guess, but the word "sum" (and its synonyms) have not appeared in this discussion so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let's take this a step further&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the desired output any one of the following?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;frequency that simultaneously A='C' and B='C' and C='C' and D='C'&lt;/LI&gt;&lt;LI&gt;frequency A='C' + frequency B='C' + frequency C='C' + frqeuency D='C'&lt;/LI&gt;&lt;LI&gt;something else&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 17:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103449#M9789</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-02-08T17:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103450#M9790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am so sorry for not being clear on this. Yes this is what I wanted: the sum of the frequencies as you described&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;frequency A='C' + frequency B='C' + frequency C='C' + frqeuency D='C'&lt;P&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(and these frequencies are calculated under the conditions in where clause in my code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I tried the code PG sent but it does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 18:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103450#M9790</guid>
      <dc:creator>DMP</dc:creator>
      <dc:date>2013-02-08T18:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103451#M9791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here's the problem. PROC FREQ doesn't do sums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a multi-step program to get what you want. Maybe there is a shorter way, but this is how I would do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by somevariable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables a/noprint out=var_a_freq;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables b/noprint out=var_b_freq;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables c/noprint out=var_c_freq;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables d/noprint out=var_d_freq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data all;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set var_a_freq(where=(a='c')) var_b_freq(where=(b='c')) var_c_freq(where=(c='c')) var_d_freq(where=(d='c'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by somevariable;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=all sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by somevariable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var count;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 18:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103451#M9791</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-02-08T18:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to customise the output?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103452#M9792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! THANK YOU SO MUCH!!&lt;/P&gt;&lt;P&gt;That saves me hours!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 18:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-customise-the-output/m-p/103452#M9792</guid>
      <dc:creator>DMP</dc:creator>
      <dc:date>2013-02-08T18:32:53Z</dc:date>
    </item>
  </channel>
</rss>

