<?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: data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Where-clause-in-data-step/m-p/288004#M59333</link>
    <description>&lt;P&gt;Check your spelling. Make sure the variable you reference is the same. I will bet that there is no _ in the name of the variables (or a space either)&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2016 23:10:01 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-07-28T23:10:01Z</dc:date>
    <item>
      <title>Error in Where clause in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Where-clause-in-data-step/m-p/288001#M59331</link>
      <description>&lt;P&gt;I am runing following code,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname orionx XLSX "/home/aniketwagare0/test/ecprg193/lpar.xlsx"&lt;BR /&gt;libname outori "/home/aniketwagare0/test/output"&lt;/P&gt;
&lt;P&gt;data outori.tetest&lt;BR /&gt;set orionx.lpar1&lt;BR /&gt;where Action Performed='111 Create an account' and Action Performed='109 Subscribe Email'&lt;BR /&gt;run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i am getting following error,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;57 data outori.tetest;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;58 set orionx.lpar1;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;59 where Action_Performed='111 Create an account' and Action_Performed='109 Subscribe Email'&lt;/DIV&gt;
&lt;DIV class="sasError focus-line"&gt;ERROR: Variable Action_Performed is not on file ORIONX.lpar1.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;60 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;I have attached my xlsx file.&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Jul 2016 00:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Where-clause-in-data-step/m-p/288001#M59331</guid>
      <dc:creator>aniketwagare0</dc:creator>
      <dc:date>2016-07-29T00:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Where-clause-in-data-step/m-p/288004#M59333</link>
      <description>&lt;P&gt;Check your spelling. Make sure the variable you reference is the same. I will bet that there is no _ in the name of the variables (or a space either)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 23:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Where-clause-in-data-step/m-p/288004#M59333</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-28T23:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Where-clause-in-data-step/m-p/288011#M59338</link>
      <description>&lt;P&gt;Your condition will never be true.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If one portion is true the other will not be true.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you mean OR instead of AND?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use IN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where actionPerformed in ('match1' , 'match2', 'match3');&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 00:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Where-clause-in-data-step/m-p/288011#M59338</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-29T00:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Where clause in data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-Where-clause-in-data-step/m-p/288056#M59354</link>
      <description>&lt;P&gt;This&lt;/P&gt;
&lt;PRE&gt;ERROR: Variable Action_Performed is not on file ORIONX.lpar1.&lt;/PRE&gt;
&lt;P&gt;tells the whole story. You mistyped the variable name.&lt;/P&gt;
&lt;P&gt;Before working with Excel files through SAS, one should make sure that the header lines in the sheets (which are used to create variable names) adhere to SAS naming standards.&lt;/P&gt;
&lt;P&gt;I'd rather import the Excel data into SAS (preferably by saving to a proper file format like csv from Excel) and deal with issues there.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 07:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-Where-clause-in-data-step/m-p/288056#M59354</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-07-29T07:39:46Z</dc:date>
    </item>
  </channel>
</rss>

