<?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: Syntax error for no reason in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631755#M20984</link>
    <description>&lt;P&gt;So I just put&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;{I} in front of anything I'm coding? Or wait till is get a bogus syntax error and then redo with&amp;nbsp;&amp;nbsp;{I}?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;David K. Cundiff&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2020 00:50:47 GMT</pubDate>
    <dc:creator>dkcundiffMD</dc:creator>
    <dc:date>2020-03-13T00:50:47Z</dc:date>
    <item>
      <title>Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631668#M20963</link>
      <description>&lt;P&gt;Coding with SAS Studio 9.4, I got the following error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;BMI17fNS1=&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;743 pmeat17KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;744 +rmeat17KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;745 +fish17KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;746 +milk17KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;747 +poultry16KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;748 +eggs16KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;749 ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;750&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;751 BMI17fNS2=&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;752 fruits17KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;753 +vegetables17KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;754 +nutsseeds17KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;755 +potatoes16KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;756 +wgrains17KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;757 +legumes17KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;758 +rice16KCAj&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;759 +swtpot16KCAj;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;760&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;761 BMI17fNS3=BMI17fNS1/BMI17fNS2;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;762&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;763 BMI17fNS4=&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;764 (BMI17fNS3*3.04491&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;765 -PAMETs17m*0.00039009) /1.25398;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;766&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;767 BMI17fNS5=BMI17fNS4 +22.20829‬;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;___&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;
&lt;DIV id="sasLogError1_1584037884453" class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, IN,&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;768 *&lt;/DIV&gt;
&lt;DIV id="sasLogError2_1584037884453" class="sasError focus-line"&gt;ERROR: The name ‬ is not a valid SAS name.&lt;/DIV&gt;
&lt;DIV id="sasLogError3_1584037884453" class="sasError"&gt;ERROR: The name ‬ is not a valid SAS name.&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;I first tried to add the&amp;nbsp;22.20829 in the&amp;nbsp;BMI17fNS4 expression and got the same syntax error. Other times the same simple addition of a constant does not throw an error message.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;What is my problem?&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;Thanks.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;David K. Cundiff&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Mar 2020 18:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631668#M20963</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2020-03-12T18:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631673#M20964</link>
      <description>&lt;P&gt;In your log what is being underlined with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;___
22
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proportional font does not work for SASLOG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show your log using {i} box.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 18:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631673#M20964</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2020-03-12T18:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631707#M20973</link>
      <description>&lt;P&gt;The ";" at the end of the equation was the spot with the&lt;/P&gt;
&lt;PRE&gt;___
22&lt;/PRE&gt;
&lt;P&gt;However, when I did some further unrelated work on the code and when back,&lt;STRONG&gt; it worked&lt;/STRONG&gt;. That has occasionally happened before. I'm still puzzled why.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 20:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631707#M20973</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2020-03-12T20:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631713#M20975</link>
      <description>&lt;P&gt;Figure out where &lt;FONT color="#ff0000"&gt;these&lt;/FONT&gt;&amp;nbsp; characters are coming from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 558px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36821i9BA3D217CDD83B60/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 21:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631713#M20975</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2020-03-12T21:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631738#M20980</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292162"&gt;@dkcundiffMD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The ";" at the end of the equation was the spot with the&lt;/P&gt;
&lt;PRE&gt;___
22&lt;/PRE&gt;
&lt;P&gt;However, when I did some further unrelated work on the code and when back,&lt;STRONG&gt; it worked&lt;/STRONG&gt;. That has occasionally happened before. I'm still puzzled why.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You should &lt;STRONG&gt;always&lt;/STRONG&gt; paste Log or Code entries into a code box opened with either the forum's {I} or "running man" icon. The main message windows reformat text and have been known to introduce HTML, or interpret&amp;nbsp;certain characters as HTML for display,&amp;nbsp;characters (seemingly at random) so what you paste may not actually be what the code actually was.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your posting shows what appears to be Call execute generated code your source code may have an invisible character that only sometimes gets inserted depending on your code or the value in your data set contains a character not valid for names. If you are using Call execute it may help to share both the code and some example data. If you use a data set for generating code you really want to validate the values for use in variable or data set names. Luckily SAS supplies functions MVALID (to test if a string is valid for a member {specify catalog, data set, itemstor, access descriptor etc.} name) and NVALID to check the validity of a string as use in a variable name.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 23:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631738#M20980</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-12T23:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631755#M20984</link>
      <description>&lt;P&gt;So I just put&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;{I} in front of anything I'm coding? Or wait till is get a bogus syntax error and then redo with&amp;nbsp;&amp;nbsp;{I}?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;David K. Cundiff&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 00:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631755#M20984</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2020-03-13T00:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631777#M20986</link>
      <description>&lt;P&gt;CLICK on the Insert Code icon or the Insert SAS code icon on the editor menu and a window will pop-up where you can paste the lines of text you copied from your SAS log or program editor.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36830i6103B997A78142D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 03:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631777#M20986</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-13T03:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631958#M21021</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 639        
 640        BMI17f6s=
 641        +pmeat17KCs *0.0257616*0.59026594*100
 642        +rmeat17KCs *0.28559643606‬*0.59026594*100
                                      ___
                                      22
 ERROR: The name ‬ is not a valid SAS name.
 ERROR: The name ‬ is not a valid SAS name.
 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=, AND, EQ, GE, GT, LE, 
               LT, MAX, MIN, NE, NG, NL, OR, ^=, |, ||, ~=.  
 
 643        +fish17KCs *0.001355444*0.59026594*100
 644        +milk17KCs *0.152948*0.59026594*100
 645        +poultry16KCs *0.32966*0.59026594*100
 646        +eggs16KCs *0.076896*0.59026594*100
 647        
 648        - fruits17KCs *0.022533*0.59026594*100
 649        -vegetables17KCs *0.0311578*0.59026594*100
 650        -nutsseeds17KCs *0.0029001*0.59026594*100
 651        - wgrains17KCs *0.0032282*0.59026594*100
 652        -legumes17KCs *0.010995*0.59026594*100
 653        -corn16KCs*0.00005218*0.59026594*100
 654        -potatoes16KCs*0.00021426*0.59026594*100
 655        -rice16KCs *0.075717*0.59026594*100
 656        -swtpot16KCs *0.001059*0.59026594*100
 657        
 658        -PAMets17ms*0.21541 *0.59026594*100
 659        ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It happened again. Is this what you mean?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 16:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631958#M21021</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2020-03-13T16:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631963#M21024</link>
      <description>&lt;P&gt;There are three characters between 6 and * that are not being displayed.&amp;nbsp; I think your issue may be related to file encoding but I don't know enough about that to be helpful. &amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; is someone who I believe will be able to explain the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 578px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36848i5F235CE8D9438E30/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 16:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631963#M21024</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2020-03-13T16:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631973#M21026</link>
      <description>&lt;P&gt;That code E280AC is pop-directional format.&amp;nbsp; It does not really have a glyph.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Bidirectional_text" target="_blank"&gt;https://en.wikipedia.org/wiki/Bidirectional_text&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you by any chances using languages like Arabic or Hebrew that are written from right to left on the page?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 16:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/631973#M21026</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-13T16:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/632092#M21035</link>
      <description>&lt;P&gt;I removed the non displaying code that you pointed out and it worked!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 22:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/632092#M21035</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2020-03-13T22:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error for no reason</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/632101#M21036</link>
      <description>No. I'm not using Arabic, Hebrew, or other foreign language.&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Sat, 14 Mar 2020 03:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Syntax-error-for-no-reason/m-p/632101#M21036</guid>
      <dc:creator>dkcundiffMD</dc:creator>
      <dc:date>2020-03-14T03:34:31Z</dc:date>
    </item>
  </channel>
</rss>

