<?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: symbol ^: what is? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/symbol-what-is/m-p/228591#M41301</link>
    <description>&lt;P&gt;It means NOT:&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000780367.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000780367.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However in the context of what your showing below, well, I really don't know where you got the code from, but it isn't very helpful. &amp;nbsp;What are you trying to do? &amp;nbsp;From a readablity sense I would use textual varieties, e.g. ne for not equal, rather than ^=. &amp;nbsp;Also ^ could be escape char, so would avoid it.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2015 10:37:55 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-10-06T10:37:55Z</dc:date>
    <item>
      <title>symbol ^: what is?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/symbol-what-is/m-p/228590#M41300</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a program sas the symbol ^, I do not understand what it means,&amp;nbsp;someone can explain to me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;x= ^-2; put x=;&lt;BR /&gt;x= ^-1; put x=;&lt;BR /&gt;x= ^0; put x=;&lt;BR /&gt;x= ^1; put x=;&lt;BR /&gt;x= ^2; put x=;&lt;BR /&gt;x= ^3; put x=;&lt;BR /&gt;x= 1*^-2; put x=;&lt;BR /&gt;x= 2*^-1; put x=;&lt;BR /&gt;x= 3*^0; put x=;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 09:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/symbol-what-is/m-p/228590#M41300</guid>
      <dc:creator>mariopellegrini</dc:creator>
      <dc:date>2015-10-06T09:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: symbol ^: what is?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/symbol-what-is/m-p/228591#M41301</link>
      <description>&lt;P&gt;It means NOT:&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000780367.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000780367.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However in the context of what your showing below, well, I really don't know where you got the code from, but it isn't very helpful. &amp;nbsp;What are you trying to do? &amp;nbsp;From a readablity sense I would use textual varieties, e.g. ne for not equal, rather than ^=. &amp;nbsp;Also ^ could be escape char, so would avoid it.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 10:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/symbol-what-is/m-p/228591#M41301</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-10-06T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: symbol ^: what is?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/symbol-what-is/m-p/228592#M41302</link>
      <description>&lt;P&gt;Beaten to it by RW9!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, ^ is shorthand for not and I remember using it on IBM mainframes many, many years ago (so far back it was either SAS 5.18 or 6.02).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wouldn't try and guess why the code was written like it was but there are far more easily understood ways of getting the same results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is probably a leftover fromsomeone experimenting before using something similar in a "real" SAS program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 10:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/symbol-what-is/m-p/228592#M41302</guid>
      <dc:creator>rivieralad</dc:creator>
      <dc:date>2015-10-06T10:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: symbol ^: what is?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/symbol-what-is/m-p/228618#M41311</link>
      <description>&lt;P&gt;While it is true that the symbol gets interpreted as "not", there is more that you need to know to figure out what this code&amp;nbsp;is doing.&amp;nbsp; Putting "not" in front of a number turns it from a numerical value into a logical expression.&amp;nbsp; SAS evaluates any logical expression as either true or false, and returns a "1" for true expressions and a "0" for false expressions.&amp;nbsp; "not" means do the opposite:&amp;nbsp; return "0" for true expressions, and "1" for false expressions.&amp;nbsp; What does SAS consider to be true or false?&amp;nbsp; Well, the rule is that zero and missing values are false, and anything else (including negative numbers) is considered to be true.&amp;nbsp; So in every case, "not" plus a number gets replaced by either "1" or "0", and then the math gets carried out.&amp;nbsp; I agree that this code must be an experiment, just to get more insight into how SAS works with logical expressions.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 13:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/symbol-what-is/m-p/228618#M41311</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-10-06T13:17:39Z</dc:date>
    </item>
  </channel>
</rss>

