<?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: Filtering in a PROC IMPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filtering-in-a-PROC-IMPORT/m-p/313482#M68121</link>
    <description>&lt;P&gt;Try to add a where= dataset option to your output dataset Sales.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2016 14:14:30 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-11-22T14:14:30Z</dc:date>
    <item>
      <title>Filtering in a PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-in-a-PROC-IMPORT/m-p/313477#M68120</link>
      <description>&lt;P&gt;When doing a PROC IMPORT, can I add a filter here?&amp;nbsp; If so, where?&amp;nbsp; I am a basic SAS user so any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;IMPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Sales"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=Sales&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DBMS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=access &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REPLACE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATABASE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\\americredit.com\db_files\AOC\SA\AR\Analytics\RDW.accdb"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-in-a-PROC-IMPORT/m-p/313477#M68120</guid>
      <dc:creator>TMiller16</dc:creator>
      <dc:date>2016-11-22T14:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering in a PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-in-a-PROC-IMPORT/m-p/313482#M68121</link>
      <description>&lt;P&gt;Try to add a where= dataset option to your output dataset Sales.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-in-a-PROC-IMPORT/m-p/313482#M68121</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-22T14:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering in a PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-in-a-PROC-IMPORT/m-p/313483#M68122</link>
      <description>&lt;P&gt;You&amp;nbsp; can use what are called "data set name parameters", and a "where" expression can be one of those paramenters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;IMPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Sales"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=Sales&amp;nbsp; &lt;FONT color="#000000"&gt;(where=(&lt;EM&gt;&lt;STRONG&gt;logical expression here&lt;/STRONG&gt;&lt;/EM&gt;))&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DBMS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=access &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REPLACE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATABASE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\\americredit.com\db_files\AOC\SA\AR\Analytics\RD&lt;WBR /&gt;W.accdb"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately the filter is applied when writing the output, not on reading the input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-in-a-PROC-IMPORT/m-p/313483#M68122</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2016-11-22T14:15:01Z</dc:date>
    </item>
  </channel>
</rss>

