<?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 where in condition of proc export in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417729#M67698</link>
    <description>&lt;P&gt;Hello , good morning,&lt;BR /&gt;&lt;BR /&gt;I want place a condition "where " in a proc export like this :&lt;BR /&gt;&lt;BR /&gt;proc export data=work.refec9 (where=(acteur="toto") (statut&amp;lt;&amp;gt;"tata")) outfile="\\serveur\\dossier\sousdossier\truc.xlsx" dbms=XLSX replace ;&lt;BR /&gt;sheet="a_traiter";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I have tried to follow the law which are here with unsuccess : &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001000998.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001000998.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give me your opinion&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[KB] fixed the link&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2017 12:11:25 GMT</pubDate>
    <dc:creator>azertyuiop</dc:creator>
    <dc:date>2017-12-01T12:11:25Z</dc:date>
    <item>
      <title>where in condition of proc export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417729#M67698</link>
      <description>&lt;P&gt;Hello , good morning,&lt;BR /&gt;&lt;BR /&gt;I want place a condition "where " in a proc export like this :&lt;BR /&gt;&lt;BR /&gt;proc export data=work.refec9 (where=(acteur="toto") (statut&amp;lt;&amp;gt;"tata")) outfile="\\serveur\\dossier\sousdossier\truc.xlsx" dbms=XLSX replace ;&lt;BR /&gt;sheet="a_traiter";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I have tried to follow the law which are here with unsuccess : &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001000998.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001000998.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give me your opinion&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[KB] fixed the link&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 12:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417729#M67698</guid>
      <dc:creator>azertyuiop</dc:creator>
      <dc:date>2017-12-01T12:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: where in condition of proc export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417731#M67699</link>
      <description>&lt;P&gt;A where condition needs to be a syntactically valid boolean expression.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;(acteur="toto") (statut&amp;lt;&amp;gt;"tata")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;clearly is not.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;(acteur="toto" and statut&amp;lt;&amp;gt;"tata")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;(acteur="toto" or statut&amp;lt;&amp;gt;"tata")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You just have to keep reading on in the documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000131192.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000131192.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 12:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417731#M67699</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-01T12:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: where in condition of proc export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417732#M67700</link>
      <description>&lt;P&gt;This:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(where=(acteur="toto") (statut&amp;lt;&amp;gt;"tata"))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is not a valid where clause.&amp;nbsp; Where clause take the form:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where &amp;lt;condition&amp;gt; [logical operator &amp;lt;condition&amp;gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(where=(acteur="toto"&amp;nbsp;and statut&amp;lt;&amp;gt;"tata"))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Would work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You are trying to do a where clause like its options - e.g. keep or drop or where.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 12:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417732#M67700</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-12-01T12:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: where in condition of proc export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417747#M67703</link>
      <description>&lt;P&gt;Excellent for your link , I keep this in my paper note .&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 13:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417747#M67703</guid>
      <dc:creator>azertyuiop</dc:creator>
      <dc:date>2017-12-01T13:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: where in condition of proc export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417749#M67704</link>
      <description>&lt;P&gt;I have tried this code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=work.ma_table (where=(champ1&amp;lt;&amp;gt;"XXXX" and champ2="YYYY" )) outfile="\\serveur\\dossier\sous dossier\\fichier.xlsx" dbms=XLSX replace ; sheet="nomfeuille2"; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It's ok in my side , there is a result in out &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 13:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/where-in-condition-of-proc-export/m-p/417749#M67704</guid>
      <dc:creator>azertyuiop</dc:creator>
      <dc:date>2017-12-01T13:36:56Z</dc:date>
    </item>
  </channel>
</rss>

