<?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: Please help with SAS code in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Please-help-with-SAS-code/m-p/72270#M20935</link>
    <description>Hi:&lt;BR /&gt;
  Proc FREQ needs a TABLES statement so it knows which variables you want to get information about. Read the documentation on Proc FREQ &lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/freq_toc.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/freq_toc.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_freq_sect010.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_freq_sect010.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_freq_sect023.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_freq_sect023.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
and experiment with these 2 programs that use SASHELP.SHOES. That approach might help you come up with syntax that works for your desired report.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc freq data=sashelp.shoes;&lt;BR /&gt;
  title 'Table on Product Only';&lt;BR /&gt;
  by region;&lt;BR /&gt;
  tables product;&lt;BR /&gt;
run;&lt;BR /&gt;
                                     &lt;BR /&gt;
proc freq data=sashelp.shoes nlevels;&lt;BR /&gt;
  title ' With NLEVELS option and no BY';&lt;BR /&gt;
  tables region product;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Tue, 03 Feb 2009 20:06:21 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-02-03T20:06:21Z</dc:date>
    <item>
      <title>Please help with SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Please-help-with-SAS-code/m-p/72269#M20934</link>
      <description>I have the following code, I am a beginner SAS programmer;&lt;BR /&gt;
&lt;BR /&gt;
I am trying to find the maximum number of frequency in category DIA_1 I think that I should sort by Patient ID first then find DIA_1 is that correct.  How could I program:  This is what I came up with but its wrong.  Thanks.&lt;BR /&gt;
&lt;BR /&gt;
proc sort data = report.FY08_datanodup;&lt;BR /&gt;
by PAT_ID descending DIA_1;&lt;BR /&gt;
run;&lt;BR /&gt;
proc freq data = report.FY08_datanodup;&lt;BR /&gt;
by DIA_1;&lt;BR /&gt;
run;

Message was edited by: RHUB</description>
      <pubDate>Tue, 03 Feb 2009 18:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Please-help-with-SAS-code/m-p/72269#M20934</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-03T18:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Please-help-with-SAS-code/m-p/72270#M20935</link>
      <description>Hi:&lt;BR /&gt;
  Proc FREQ needs a TABLES statement so it knows which variables you want to get information about. Read the documentation on Proc FREQ &lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/freq_toc.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/freq_toc.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_freq_sect010.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_freq_sect010.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_freq_sect023.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_freq_sect023.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
and experiment with these 2 programs that use SASHELP.SHOES. That approach might help you come up with syntax that works for your desired report.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc freq data=sashelp.shoes;&lt;BR /&gt;
  title 'Table on Product Only';&lt;BR /&gt;
  by region;&lt;BR /&gt;
  tables product;&lt;BR /&gt;
run;&lt;BR /&gt;
                                     &lt;BR /&gt;
proc freq data=sashelp.shoes nlevels;&lt;BR /&gt;
  title ' With NLEVELS option and no BY';&lt;BR /&gt;
  tables region product;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 03 Feb 2009 20:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Please-help-with-SAS-code/m-p/72270#M20935</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-02-03T20:06:21Z</dc:date>
    </item>
  </channel>
</rss>

