<?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: re: error message in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/re-error-message/m-p/322684#M71414</link>
    <description>&lt;P&gt;How SAS knows if the variable is numeric or character (your only options in SAS) is usually how the variable is first encountered in a data step. If the first use is an assignment statement such as Bulletin_Number=&amp;nbsp; then what appears after the equal sign sets the type. If there is not a quoted value then the variable is numeric. Since your example&amp;nbsp;statement had no quotes then the variable created as numeric and numeric values cannot have an "A" or anything except digits, decimals or exponential notation values (3.4E5 for example).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to learn macro usage without an understanding of basic SAS code and programming behavior then expect a bumpy ride.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 15:35:19 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-01-05T15:35:19Z</dc:date>
    <item>
      <title>re: error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-error-message/m-p/322672#M71407</link>
      <description>&lt;P&gt;Hi...I am getting an error message and this error message occurs if I try to include an alphabet letter as part of a number. It works if I only have all numbers. The thing is that I had used a letter with the numbers before and it worked fine...not to sure what has changed since. Any suggestions how to correct this...Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;FONT size="3"&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;%LET&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt; BULLETIN = 79A;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;log output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;376&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA Bulletin;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;377&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bulletin_Number=&amp;amp;bulletin;&lt;/P&gt;
&lt;P&gt;NOTE: Line generated by the macro variable "BULLETIN".&lt;/P&gt;
&lt;P&gt;377&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 79A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 14:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-error-message/m-p/322672#M71407</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2017-01-05T14:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: re: error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-error-message/m-p/322673#M71408</link>
      <description>&lt;P&gt;79A is not a number, and it is not a valid name for a variable, therefore you get the error message in the data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What type should the data step variable bulletin_number be, and what value do you want to assign to it?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-error-message/m-p/322673#M71408</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-05T15:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: re: error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-error-message/m-p/322674#M71409</link>
      <description>&lt;P&gt;Your syntax is invalid and this should never have worked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bulletin_Number=&amp;amp;bulletin;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;bulletin = 79A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bulletin_Number=79A; -&amp;gt; this is not valid code, you need quotation marks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bulletin_Number="&amp;amp;bulletin";&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-error-message/m-p/322674#M71409</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-05T15:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: re: error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-error-message/m-p/322684#M71414</link>
      <description>&lt;P&gt;How SAS knows if the variable is numeric or character (your only options in SAS) is usually how the variable is first encountered in a data step. If the first use is an assignment statement such as Bulletin_Number=&amp;nbsp; then what appears after the equal sign sets the type. If there is not a quoted value then the variable is numeric. Since your example&amp;nbsp;statement had no quotes then the variable created as numeric and numeric values cannot have an "A" or anything except digits, decimals or exponential notation values (3.4E5 for example).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are trying to learn macro usage without an understanding of basic SAS code and programming behavior then expect a bumpy ride.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-error-message/m-p/322684#M71414</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-05T15:35:19Z</dc:date>
    </item>
  </channel>
</rss>

