<?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 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699287#M25594</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS and hoping you could help as I keep getting this ERROR 22-322 when I try creating a new output doc. I'll bet the answer is simple but cannot figure it out at all, such as when I do this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel file="&amp;amp;outpath/StormStats.xlsx"&lt;BR /&gt;style=snow&lt;BR /&gt;options(sheet_name='South Pacific Summary');&lt;BR /&gt;ods noproctitle;&lt;BR /&gt;title;&lt;/P&gt;&lt;P&gt;proc means data=pg1.storm_detail maxdec=0 median max;&lt;BR /&gt;class Season;&lt;BR /&gt;var Wind;&lt;BR /&gt;where Basin='SP' and Season in (2014,2015,2016);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods excel options(sheet_name='Detail');&lt;/P&gt;&lt;P&gt;proc print data=pg1.storm_detail noobs;&lt;BR /&gt;where Basin='SP' and Season in (2014,2015,2016);&lt;BR /&gt;by Season;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods excel close;&lt;BR /&gt;ods proctitle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 19:49:00 GMT</pubDate>
    <dc:creator>tacosta3</dc:creator>
    <dc:date>2020-11-16T19:49:00Z</dc:date>
    <item>
      <title>ERROR 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699287#M25594</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS and hoping you could help as I keep getting this ERROR 22-322 when I try creating a new output doc. I'll bet the answer is simple but cannot figure it out at all, such as when I do this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel file="&amp;amp;outpath/StormStats.xlsx"&lt;BR /&gt;style=snow&lt;BR /&gt;options(sheet_name='South Pacific Summary');&lt;BR /&gt;ods noproctitle;&lt;BR /&gt;title;&lt;/P&gt;&lt;P&gt;proc means data=pg1.storm_detail maxdec=0 median max;&lt;BR /&gt;class Season;&lt;BR /&gt;var Wind;&lt;BR /&gt;where Basin='SP' and Season in (2014,2015,2016);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods excel options(sheet_name='Detail');&lt;/P&gt;&lt;P&gt;proc print data=pg1.storm_detail noobs;&lt;BR /&gt;where Basin='SP' and Season in (2014,2015,2016);&lt;BR /&gt;by Season;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods excel close;&lt;BR /&gt;ods proctitle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 19:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699287#M25594</guid>
      <dc:creator>tacosta3</dc:creator>
      <dc:date>2020-11-16T19:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699289#M25595</link>
      <description>&lt;P&gt;It's followed by a ERROR 200-322 and here is also the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: ODS statements in the SAS Studio environment may disable some output features.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 ods powerpoint file="&amp;amp;outpath/pressure.pptx" style=powerpointlight;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Line generated by the macro variable "OUTPATH".&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 ""/home/u49923793/Output"&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;200&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, AUTHOR, BOX_SIZING, CATEGORY, CLOSE, COMMENTS, DOM, DPI, FILE,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;GFOOTNOTE, GTITLE, IMAGE_DPI, KEYWORDS, LAYOUT, NOGFOOTNOTE, NOGTITLE, OPTIONS, SASDATE, STARTPAGE, STATUS, STYLE,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;TITLE, WORK.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 title "Minimum Pressure Statistics by Basin";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 ods noproctitle;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 proc means data=pg1.storm_final mean median min maxdec=0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 class BasinName;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 var MinPressure;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 3092 observations read from the data set PG1.STORM_FINAL.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE MEANS used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.04 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;user cpu time 0.04 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;memory 10380.48k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;OS Memory 44480.00k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Timestamp 11/16/2020 07:50:21 PM&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Step Count 205 Switch Count 1&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Reclaims 2122&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Voluntary Context Switches 34&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Output Operations 8&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 title "Correlation of Minimum Pressure and Maximum Wind";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 proc sgscatter data=pg1.storm_final;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 plot minpressure*maxwindmph;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE SGSCATTER used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.45 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;user cpu time 0.28 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;system cpu time 0.02 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;memory 22127.17k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;OS Memory 55724.00k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Timestamp 11/16/2020 07:50:21 PM&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Step Count 206 Switch Count 1&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Reclaims 5258&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Voluntary Context Switches 264&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Involuntary Context Switches 2&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Output Operations 4808&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 3092 observations read from the data set PG1.STORM_FINAL.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 title;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89 ods powerpoint close;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;92 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;104&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 19:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699289#M25595</guid>
      <dc:creator>tacosta3</dc:creator>
      <dc:date>2020-11-16T19:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699290#M25596</link>
      <description>&lt;P&gt;I think the error is how you're creating your outpath macro variable, specifically, do you have quotes on that variable? How is it created?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;From the log it looks like you have quotes on that macro variable that then interfere with the quotes in the path. Remove the quotes from the macro variable.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 20:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699290#M25596</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-16T20:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699291#M25597</link>
      <description>Thanks for your reply. I created the macro variable like this:&lt;BR /&gt;&lt;BR /&gt;%let outpath="/home/u49923793/Output";</description>
      <pubDate>Mon, 16 Nov 2020 20:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699291#M25597</guid>
      <dc:creator>tacosta3</dc:creator>
      <dc:date>2020-11-16T20:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 22-322: Syntax error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699292#M25598</link>
      <description>Fixed! Thanks so much!</description>
      <pubDate>Mon, 16 Nov 2020 20:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-22-322-Syntax-error/m-p/699292#M25598</guid>
      <dc:creator>tacosta3</dc:creator>
      <dc:date>2020-11-16T20:05:01Z</dc:date>
    </item>
  </channel>
</rss>

