<?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 DI Studio: Where tab in Lookup Transformation question in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Where-tab-in-Lookup-Transformation-question/m-p/176727#M3543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DI Studio 4.9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm using a Lookup transformation, but am having some trouble building an expression in the where tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My source dataset has a key and a column with a sas_date. I use the key to look up a match on a second dataset. That works fine. However, the second dataset also has 'valid from date' and 'valid to date'. What I want to do is build an expression in the where tab where the sas_date from the first dataset falls within the date range of those two date fields in the second dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the expression builder in the where tab doesn't seem to recognize any columns or data from the first, source dataset but I seem to only be able to reference columns from the second dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I using this transformation wrong? Something I'm missing? Do I need to incorporate some user written code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2015 15:04:00 GMT</pubDate>
    <dc:creator>jwhite</dc:creator>
    <dc:date>2015-02-20T15:04:00Z</dc:date>
    <item>
      <title>DI Studio: Where tab in Lookup Transformation question</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Where-tab-in-Lookup-Transformation-question/m-p/176727#M3543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DI Studio 4.9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm using a Lookup transformation, but am having some trouble building an expression in the where tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My source dataset has a key and a column with a sas_date. I use the key to look up a match on a second dataset. That works fine. However, the second dataset also has 'valid from date' and 'valid to date'. What I want to do is build an expression in the where tab where the sas_date from the first dataset falls within the date range of those two date fields in the second dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the expression builder in the where tab doesn't seem to recognize any columns or data from the first, source dataset but I seem to only be able to reference columns from the second dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I using this transformation wrong? Something I'm missing? Do I need to incorporate some user written code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 15:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Where-tab-in-Lookup-Transformation-question/m-p/176727#M3543</guid>
      <dc:creator>jwhite</dc:creator>
      <dc:date>2015-02-20T15:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: Where tab in Lookup Transformation question</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Where-tab-in-Lookup-Transformation-question/m-p/176728#M3544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you open the code tab you'll see that the lookup uses data step syntax. What you are describing is some kind of between - and - logic,&amp;nbsp; wich is not possible here. You need to either use the Join transform or go with user written code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 22:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Where-tab-in-Lookup-Transformation-question/m-p/176728#M3544</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-02-20T22:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: Where tab in Lookup Transformation question</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Where-tab-in-Lookup-Transformation-question/m-p/176729#M3545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. So this kind of between and logic can't be used in a data step?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 14:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Where-tab-in-Lookup-Transformation-question/m-p/176729#M3545</guid>
      <dc:creator>jwhite</dc:creator>
      <dc:date>2015-02-23T14:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio: Where tab in Lookup Transformation question</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Where-tab-in-Lookup-Transformation-question/m-p/176730#M3546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not without some serious tweaking. Data step uses BY processing as its primary technique, which means you can just name the join/merge variables.&lt;/P&gt;&lt;P&gt;And as a part of the Lookup transformation - definitely not possible.&lt;/P&gt;&lt;P&gt;So Join, or User written seems to be your options.&lt;/P&gt;&lt;P&gt;But I can see your need, been there myself. Since there are a lot of historization in DW/Data Mart dimensions, time should definitely be part of a standard lookup functionality.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 15:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-Where-tab-in-Lookup-Transformation-question/m-p/176730#M3546</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-02-23T15:11:49Z</dc:date>
    </item>
  </channel>
</rss>

