<?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: Errors 22 &amp;amp; 76 for p106a04.sas Activity in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Errors-22-amp-76-for-p106a04-sas-Activity/m-p/988597#M380129</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/480946"&gt;@ivarenho&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whenever you wonder why a &lt;EM&gt;syntax error&lt;/EM&gt; has occurred, compare the syntax of your code to the corresponding syntax pattern shown in the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/pgmsashome/home.htm" target="_blank" rel="noopener"&gt;SAS documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your example, the syntax pattern in the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm" target="_blank" rel="noopener"&gt;documentation of the ODS EXCEL statement&lt;/A&gt;, actually two alternative patterns, look like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV id="p0km619xrfsgpzn1v9d66rpw9aqm" class="xisDoc-syntaxSimple"&gt;
&lt;DIV class="xisDoc-syntaxLevel"&gt;&lt;SPAN class="xisDoc-keyword"&gt;ODS EXCEL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;(&amp;lt;&lt;SPAN class="xisDoc-keyword"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#n08a4r2r3ld7q5n1gegnp2cj0tbac" target="_blank"&gt;ID&lt;/A&gt;&lt;/SPAN&gt;=&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;identifier&lt;/EM&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#p1w3azd98jof7dn1fr9augoqyn4a" target="_blank"&gt;action&lt;/A&gt;&lt;/EM&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n0n3f6ij7rq30on1n7iyob2ptc2n" class="xisDoc-syntaxSimple"&gt;
&lt;DIV class="xisDoc-syntaxLevel"&gt;&lt;SPAN class="xisDoc-keyword"&gt;ODS EXCEL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;(&amp;lt;&lt;SPAN class="xisDoc-keyword"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#n08a4r2r3ld7q5n1gegnp2cj0tbac" target="_blank"&gt;ID&lt;/A&gt;&lt;/SPAN&gt;=&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;identifier&lt;/EM&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;EM class="xisDoc-userSuppliedValue"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#n07a6ymx157ksjn1dh1xjmzknz3j" target="_blank"&gt;options&lt;/A&gt;&lt;/EM&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Among the "&lt;EM&gt;options&lt;/EM&gt;" listed in the "&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#optCatLstn1cqtteamm3qpwn1req58g3f4nkj" target="_blank" rel="noopener"&gt;Summary of Optional Arguments&lt;/A&gt;" you find the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#p08fdx6yenfs30n17khh97yyfu98" target="_blank" rel="noopener"&gt;FILE=&lt;/A&gt; and &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#p09eap1c2g8bp4n1nsapv0r2expr" target="_blank" rel="noopener"&gt;STYLE=&lt;/A&gt; options that you are about to use, but &lt;EM&gt;note the correct position of the equals sign&lt;/EM&gt; in the FILE= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After correcting that I would double-check the name of the macro variable you are referring to in the path of the .xlsx file. To avoid confusion with the &lt;STRONG&gt;%&lt;/STRONG&gt;LET &lt;EM&gt;statement,&lt;/EM&gt;&amp;nbsp;it would be better not to name it LET.&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2026 17:13:06 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2026-05-22T17:13:06Z</dc:date>
    <item>
      <title>Errors 22 &amp; 76 for p106a04.sas Activity</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-22-amp-76-for-p106a04-sas-Activity/m-p/988596#M380128</link>
      <description>&lt;P&gt;Below are the errors I'm trying to resolve from an activity in the Program 1 Essentials course.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel=file "&amp;amp;let/pressure.xlsx" style=analysis;&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;76&lt;/P&gt;&lt;P&gt;I've worked to correct the macro from a previous activity and to correct the syntax in this activity as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, ANCHOR, AUTHOR, BOX_SIZING, CATEGORY, CLOSE, COMMENTS,&lt;BR /&gt;CSSSTYLE, DOM, DPI, EXCLUDE, FILE, GFOOTNOTE, GTITLE, IMAGE_DPI, KEYWORDS, NOGFOOTNOTE, NOGTITLE, OPTIONS, SASDATE,&lt;BR /&gt;SELECT, SHOW, STATUS, STYLE, SUBJECT, TEXT, TITLE, WORK.&lt;BR /&gt;&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 16:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-22-amp-76-for-p106a04-sas-Activity/m-p/988596#M380128</guid>
      <dc:creator>ivarenho</dc:creator>
      <dc:date>2026-05-22T16:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Errors 22 &amp; 76 for p106a04.sas Activity</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-22-amp-76-for-p106a04-sas-Activity/m-p/988597#M380129</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/480946"&gt;@ivarenho&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whenever you wonder why a &lt;EM&gt;syntax error&lt;/EM&gt; has occurred, compare the syntax of your code to the corresponding syntax pattern shown in the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/pgmsashome/home.htm" target="_blank" rel="noopener"&gt;SAS documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your example, the syntax pattern in the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm" target="_blank" rel="noopener"&gt;documentation of the ODS EXCEL statement&lt;/A&gt;, actually two alternative patterns, look like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV id="p0km619xrfsgpzn1v9d66rpw9aqm" class="xisDoc-syntaxSimple"&gt;
&lt;DIV class="xisDoc-syntaxLevel"&gt;&lt;SPAN class="xisDoc-keyword"&gt;ODS EXCEL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;(&amp;lt;&lt;SPAN class="xisDoc-keyword"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#n08a4r2r3ld7q5n1gegnp2cj0tbac" target="_blank"&gt;ID&lt;/A&gt;&lt;/SPAN&gt;=&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;identifier&lt;/EM&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#p1w3azd98jof7dn1fr9augoqyn4a" target="_blank"&gt;action&lt;/A&gt;&lt;/EM&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="n0n3f6ij7rq30on1n7iyob2ptc2n" class="xisDoc-syntaxSimple"&gt;
&lt;DIV class="xisDoc-syntaxLevel"&gt;&lt;SPAN class="xisDoc-keyword"&gt;ODS EXCEL&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;(&amp;lt;&lt;SPAN class="xisDoc-keyword"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#n08a4r2r3ld7q5n1gegnp2cj0tbac" target="_blank"&gt;ID&lt;/A&gt;&lt;/SPAN&gt;=&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;identifier&lt;/EM&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;EM class="xisDoc-userSuppliedValue"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#n07a6ymx157ksjn1dh1xjmzknz3j" target="_blank"&gt;options&lt;/A&gt;&lt;/EM&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Among the "&lt;EM&gt;options&lt;/EM&gt;" listed in the "&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#optCatLstn1cqtteamm3qpwn1req58g3f4nkj" target="_blank" rel="noopener"&gt;Summary of Optional Arguments&lt;/A&gt;" you find the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#p08fdx6yenfs30n17khh97yyfu98" target="_blank" rel="noopener"&gt;FILE=&lt;/A&gt; and &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#p09eap1c2g8bp4n1nsapv0r2expr" target="_blank" rel="noopener"&gt;STYLE=&lt;/A&gt; options that you are about to use, but &lt;EM&gt;note the correct position of the equals sign&lt;/EM&gt; in the FILE= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After correcting that I would double-check the name of the macro variable you are referring to in the path of the .xlsx file. To avoid confusion with the &lt;STRONG&gt;%&lt;/STRONG&gt;LET &lt;EM&gt;statement,&lt;/EM&gt;&amp;nbsp;it would be better not to name it LET.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 17:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-22-amp-76-for-p106a04-sas-Activity/m-p/988597#M380129</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2026-05-22T17:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Errors 22 &amp; 76 for p106a04.sas Activity</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Errors-22-amp-76-for-p106a04-sas-Activity/m-p/988622#M380130</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 22:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Errors-22-amp-76-for-p106a04-sas-Activity/m-p/988622#M380130</guid>
      <dc:creator>ivarenho</dc:creator>
      <dc:date>2026-05-22T22:14:43Z</dc:date>
    </item>
  </channel>
</rss>

