<?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: Difference between = and eq in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-and-eq/m-p/63257#M13764</link>
    <description>The eq operator can only be used in comparisons, in IF and WHERE for example. The = operator can be used both in comparisons and in assignments.&lt;BR /&gt;
&lt;BR /&gt;
Some people think it's easier to read the code if using different operators in assignment and comparison statements, but technically, there is no difference.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Fri, 28 Nov 2008 07:41:54 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2008-11-28T07:41:54Z</dc:date>
    <item>
      <title>Difference between = and eq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-and-eq/m-p/63256#M13763</link>
      <description>I learned long ago that it is better to use 'eq' when making comparisons and to use the = sign when setting the value of a variable. As in &lt;BR /&gt;
&lt;BR /&gt;
if x eq 0 then y = 1;&lt;BR /&gt;
&lt;BR /&gt;
I have always done it this way, but I do not remember why. So today I was trying to fix a colleague's program which seemed logically correct on the surface, but the output was clearly wrong. Eventually I tried changing all his mathematical symbols to the letter equivilent (eq, gt, ....) and the program works correctly now. But I don't know how to explain WHY it should be this way (to a guy whose first language is not english but who makes his own electronic equipment for his guitar).</description>
      <pubDate>Thu, 27 Nov 2008 17:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-and-eq/m-p/63256#M13763</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-27T17:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between = and eq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-and-eq/m-p/63257#M13764</link>
      <description>The eq operator can only be used in comparisons, in IF and WHERE for example. The = operator can be used both in comparisons and in assignments.&lt;BR /&gt;
&lt;BR /&gt;
Some people think it's easier to read the code if using different operators in assignment and comparison statements, but technically, there is no difference.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 28 Nov 2008 07:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-and-eq/m-p/63257#M13764</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-11-28T07:41:54Z</dc:date>
    </item>
  </channel>
</rss>

