<?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 Creating a frequency table using age in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-frequency-table-using-age/m-p/675424#M23616</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a frequency table for gender and sexual orientation between the ages of 18-50. Where am I going wrong.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Code:
proc freq data=WORK.SYPHILIS;
	tables genderC genderB sex_o age RACE / plots=(freqplot cumfreqplot);
	where  Type in ("genderC", "genderB", "sex_o", age "18-50");
run;

Log:

87         proc freq data=WORK.SYPHILIS;
 88         tables genderC genderB sex_o age RACE / plots=(freqplot cumfreqplot);
 89         where  Type in ("genderC", "genderB", "sex_o", age "18-50");
                                                            ___
                                                            22
                                                            202
 ERROR: Syntax error while parsing WHERE clause.
 ERROR 22-322: Syntax error, expecting one of the following: a quoted string, ).  
 ERROR 202-322: The option or parameter is not recognized and will be ignored.
 90         run;
 &lt;/PRE&gt;</description>
    <pubDate>Sat, 08 Aug 2020 18:57:06 GMT</pubDate>
    <dc:creator>Kimberly_2020</dc:creator>
    <dc:date>2020-08-08T18:57:06Z</dc:date>
    <item>
      <title>Creating a frequency table using age</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-frequency-table-using-age/m-p/675424#M23616</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a frequency table for gender and sexual orientation between the ages of 18-50. Where am I going wrong.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Code:
proc freq data=WORK.SYPHILIS;
	tables genderC genderB sex_o age RACE / plots=(freqplot cumfreqplot);
	where  Type in ("genderC", "genderB", "sex_o", age "18-50");
run;

Log:

87         proc freq data=WORK.SYPHILIS;
 88         tables genderC genderB sex_o age RACE / plots=(freqplot cumfreqplot);
 89         where  Type in ("genderC", "genderB", "sex_o", age "18-50");
                                                            ___
                                                            22
                                                            202
 ERROR: Syntax error while parsing WHERE clause.
 ERROR 22-322: Syntax error, expecting one of the following: a quoted string, ).  
 ERROR 202-322: The option or parameter is not recognized and will be ignored.
 90         run;
 &lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Aug 2020 18:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-frequency-table-using-age/m-p/675424#M23616</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-08T18:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a frequency table using age</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-frequency-table-using-age/m-p/675431#M23617</link>
      <description>&lt;P&gt;I think this will work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where  Type in ("genderC", "genderB", "sex_o") and 18&amp;lt;=age&amp;lt;=50&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This assumes age is numeric&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 19:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-frequency-table-using-age/m-p/675431#M23617</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-08T19:54:33Z</dc:date>
    </item>
  </channel>
</rss>

