<?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: extract from teradata in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/extract-from-teradata/m-p/333422#M75125</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thank you for the suggestions, I was trying to compare the Dates in Teradata and SAS&lt;BR /&gt;I have figured out this and it is working for me.&lt;BR /&gt;Where Cast(Sales_date as date) &amp;gt; %unquote(%str(%'&amp;amp;td.'%)) ;&lt;BR /&gt;Here I have read the &amp;amp;td consists of todays date (&amp;amp;sysdate) in the desired format.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Santosh</description>
    <pubDate>Thu, 16 Feb 2017 15:25:49 GMT</pubDate>
    <dc:creator>santosh_pat69</dc:creator>
    <dc:date>2017-02-16T15:25:49Z</dc:date>
    <item>
      <title>extract from teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-from-teradata/m-p/327593#M73082</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extract data from teradata.&lt;/P&gt;&lt;P&gt;i am using Pass thru to do this, i need to extract only the records which have an expiry date greater than today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a Macro variable tdy,&amp;nbsp;as this code needs to be run&amp;nbsp;daily only the stores keeps changing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where a. Exp_date &amp;gt; &amp;amp;tdy. and Sales GT 500 and Store_loc in ('xxxxx','yyyyy','oooo','zzzz');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i am getting more records when i am extracting&amp;nbsp; the data using SAS pass thru facility but when i run the similar query on Teradata&lt;/P&gt;&lt;P&gt;i get less number of records .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where a. Exp_date &amp;gt; Current_date &amp;nbsp;and Sales GT 500 and Store_loc in ('xxxxx','yyyyy','oooo','zzzz');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also i need to pass few Store names &amp;nbsp;in the Where clause as shown in the above where clause. i am planning to do this&amp;nbsp;by passing the comma separated macro variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already read in the stores details in a comma separated macro variable but i am struggling to get this macro variable in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion or guidance is helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 00:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-from-teradata/m-p/327593#M73082</guid>
      <dc:creator>santosh_pat69</dc:creator>
      <dc:date>2017-01-26T00:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: extract from teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-from-teradata/m-p/327626#M73093</link>
      <description>&lt;P&gt;Post your code and log if available. Make sure you also post the bit which shows us to what the macro variables you're using in your code resolve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 02:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-from-teradata/m-p/327626#M73093</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-01-26T02:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: extract from teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-from-teradata/m-p/327643#M73105</link>
      <description>"Similar"? Explicit pass thru means that you actually are executing within teradata. &lt;BR /&gt;It seems you have a simple filter which means you don't gain anything by doing an explicit pass through.</description>
      <pubDate>Thu, 26 Jan 2017 07:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-from-teradata/m-p/327643#M73105</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-26T07:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: extract from teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/extract-from-teradata/m-p/333422#M75125</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thank you for the suggestions, I was trying to compare the Dates in Teradata and SAS&lt;BR /&gt;I have figured out this and it is working for me.&lt;BR /&gt;Where Cast(Sales_date as date) &amp;gt; %unquote(%str(%'&amp;amp;td.'%)) ;&lt;BR /&gt;Here I have read the &amp;amp;td consists of todays date (&amp;amp;sysdate) in the desired format.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Santosh</description>
      <pubDate>Thu, 16 Feb 2017 15:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/extract-from-teradata/m-p/333422#M75125</guid>
      <dc:creator>santosh_pat69</dc:creator>
      <dc:date>2017-02-16T15:25:49Z</dc:date>
    </item>
  </channel>
</rss>

