<?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 Data Extraction from source in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/255917#M6965</link>
    <description>&lt;P&gt;Hi, Im doing ETL for new system/DM. My Target can only have 2 years data anytime though source can have much more than that. I have 2 transaction files(Assume 2 Business Unit's or Product's) and other tables for dimensions and few reference tables etc.. Now i have to pickup min date from both transaction files(may be different for each file) and extract data from other tables/files only if it is &amp;gt;= min(date). I have to pass this min date as variable for extraction to other jobs or the all the staging jobs should know that data can contain only &amp;gt;= min(date) for that particular business Unit&lt;/P&gt;&lt;P&gt;from&amp;nbsp;min(date) &amp;nbsp;to next 2 years or 24 months data to be extracted this way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;. Can somebody help me with approach and ways to achieve this? Thank You! Raj&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2016 20:09:56 GMT</pubDate>
    <dc:creator>Rajiv468</dc:creator>
    <dc:date>2016-03-10T20:09:56Z</dc:date>
    <item>
      <title>Data Extraction from source</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/255917#M6965</link>
      <description>&lt;P&gt;Hi, Im doing ETL for new system/DM. My Target can only have 2 years data anytime though source can have much more than that. I have 2 transaction files(Assume 2 Business Unit's or Product's) and other tables for dimensions and few reference tables etc.. Now i have to pickup min date from both transaction files(may be different for each file) and extract data from other tables/files only if it is &amp;gt;= min(date). I have to pass this min date as variable for extraction to other jobs or the all the staging jobs should know that data can contain only &amp;gt;= min(date) for that particular business Unit&lt;/P&gt;&lt;P&gt;from&amp;nbsp;min(date) &amp;nbsp;to next 2 years or 24 months data to be extracted this way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;. Can somebody help me with approach and ways to achieve this? Thank You! Raj&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 20:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/255917#M6965</guid>
      <dc:creator>Rajiv468</dc:creator>
      <dc:date>2016-03-10T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Extraction from source</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/256036#M6967</link>
      <description>&lt;P&gt;You can pass such reference constants to your SAS batch jobs via commandline (using the -sysparm commandline option), through environment variables (which can be questioned with the %sysget macro function), or by reading from an external file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if you have separate jobs to be run, first run one that determines the min date and writes it to a file. Then you can read that file in subsequent jobs and retrieve the date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do it in one job, it is much easier.&lt;/P&gt;
&lt;P&gt;Do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select min(date) into: mindate from transaction_table;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so you can use &amp;amp;mindate later in the same job.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 08:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/256036#M6967</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-11T08:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Extraction from source</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/256165#M6976</link>
      <description>Are you using DI Studio?</description>
      <pubDate>Fri, 11 Mar 2016 16:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/256165#M6976</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-11T16:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data Extraction from source</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/256264#M6981</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes. Im using DI for this.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Raj&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Sat, 12 Mar 2016 04:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/256264#M6981</guid>
      <dc:creator>Rajiv468</dc:creator>
      <dc:date>2016-03-12T04:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data Extraction from source</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/256275#M6982</link>
      <description>Not sure ix I follow the overall design, bug to answer the direct question: extract the nib date(s) and store in a permanent table. Then have other jobs either create a macro variable from it, or join, depending on how you wish to apply you logic. &lt;BR /&gt;Macro variable can be created in the autoexec,  pre step or in a user written transformation.</description>
      <pubDate>Sat, 12 Mar 2016 09:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Extraction-from-source/m-p/256275#M6982</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-12T09:46:24Z</dc:date>
    </item>
  </channel>
</rss>

