<?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: SAS query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/442819#M110740</link>
    <description>&lt;P&gt;You're trying to mix data step code with SQL i.e.&amp;nbsp;&lt;SPAN&gt;SELECT DISTINCT OLD_NO FROM REFERRAL is SQL and the rest is data step. They're two completely different (albeit SAS supported) languages.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Mar 2018 09:57:51 GMT</pubDate>
    <dc:creator>ChrisBrooks</dc:creator>
    <dc:date>2018-03-06T09:57:51Z</dc:date>
    <item>
      <title>SAS query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/442817#M110738</link>
      <description>&lt;P&gt;When I run the below code, I got the error message, anyone can help? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc datasets lib=TEST;&lt;BR /&gt;audit WANT;&lt;BR /&gt;initiate;&lt;BR /&gt;USER_VAR _REASON_CHANGE_ $30;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA TEST.WANT;&lt;BR /&gt;MODIFY TEST.WANT;&lt;BR /&gt;WHERE NO IN (SELECT DISTINCT OLD_NO FROM REFERRAL);&lt;BR /&gt;REFERRAL="N";&lt;BR /&gt;_REASON_CHANGE_ = "Refer Case";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Syntax error while parsing WHERE clause.&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string,&lt;BR /&gt;a numeric constant, a datetime constant, a missing value, -.&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 09:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/442817#M110738</guid>
      <dc:creator>scb</dc:creator>
      <dc:date>2018-03-06T09:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/442818#M110739</link>
      <description>&lt;P&gt;select is only valid in proc sql, not in a data step.&lt;/P&gt;
&lt;P&gt;You might want to use a data step merge to find the observations that need to be changed.&lt;/P&gt;
&lt;P&gt;Please supply example data (in data steps with datalines) to work with.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 09:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/442818#M110739</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-06T09:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/442819#M110740</link>
      <description>&lt;P&gt;You're trying to mix data step code with SQL i.e.&amp;nbsp;&lt;SPAN&gt;SELECT DISTINCT OLD_NO FROM REFERRAL is SQL and the rest is data step. They're two completely different (albeit SAS supported) languages.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 09:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-query/m-p/442819#M110740</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-03-06T09:57:51Z</dc:date>
    </item>
  </channel>
</rss>

