<?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 ERROR 22-322: Syntax error, expecting one of the following in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following/m-p/798414#M313873</link>
    <description>&lt;P&gt;New to SAS and I'm not sure why I'm getting this error:&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.query AS&lt;BR /&gt;SELECT 'year'n , id , statefips , male , raceethnic , ed , marst , nchild , occ , ind , wkswork , age , income FROM _TEMP0.db1;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;PROC DATASETS NOLIST NODETAILS;&lt;BR /&gt;CONTENTS DATA=WORK.query OUT=WORK.details;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=WORK.details;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC MEANS DATA=work.query NONOBS MAXDEC=2 SUM MEAN STD ;&lt;BR /&gt;VAR male , raceethnic , ed , marst , nchild , occ , ind , wkswork , age , income ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;________&lt;/P&gt;&lt;DIV class=""&gt;70 PROC MEANS DATA=work.query NONOBS MAXDEC=2 SUM MEAN STD ;&lt;/DIV&gt;&lt;DIV class=""&gt;71 VAR #1;&lt;/DIV&gt;&lt;DIV class=""&gt;_&lt;/DIV&gt;&lt;DIV class=""&gt;22&lt;/DIV&gt;&lt;DIV class=""&gt;200&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, /, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class=""&gt;72 RUN;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 24 Feb 2022 16:30:45 GMT</pubDate>
    <dc:creator>ccherrub</dc:creator>
    <dc:date>2022-02-24T16:30:45Z</dc:date>
    <item>
      <title>ERROR 22-322: Syntax error, expecting one of the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following/m-p/798414#M313873</link>
      <description>&lt;P&gt;New to SAS and I'm not sure why I'm getting this error:&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.query AS&lt;BR /&gt;SELECT 'year'n , id , statefips , male , raceethnic , ed , marst , nchild , occ , ind , wkswork , age , income FROM _TEMP0.db1;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;PROC DATASETS NOLIST NODETAILS;&lt;BR /&gt;CONTENTS DATA=WORK.query OUT=WORK.details;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=WORK.details;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC MEANS DATA=work.query NONOBS MAXDEC=2 SUM MEAN STD ;&lt;BR /&gt;VAR male , raceethnic , ed , marst , nchild , occ , ind , wkswork , age , income ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;________&lt;/P&gt;&lt;DIV class=""&gt;70 PROC MEANS DATA=work.query NONOBS MAXDEC=2 SUM MEAN STD ;&lt;/DIV&gt;&lt;DIV class=""&gt;71 VAR #1;&lt;/DIV&gt;&lt;DIV class=""&gt;_&lt;/DIV&gt;&lt;DIV class=""&gt;22&lt;/DIV&gt;&lt;DIV class=""&gt;200&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, /, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class=""&gt;72 RUN;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Feb 2022 16:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following/m-p/798414#M313873</guid>
      <dc:creator>ccherrub</dc:creator>
      <dc:date>2022-02-24T16:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error, expecting one of the following</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following/m-p/798417#M313874</link>
      <description>There should be no comma's in the list of variables provided to PROC MEANS. &lt;BR /&gt;&lt;BR /&gt;var male raceethnic ed ....</description>
      <pubDate>Thu, 24 Feb 2022 16:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-22-322-Syntax-error-expecting-one-of-the-following/m-p/798417#M313874</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-24T16:46:51Z</dc:date>
    </item>
  </channel>
</rss>

