<?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: Assigning value depending on varies filters from a different sources in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539205#M148521</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/242815"&gt;@amyk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe it's may be best to start with data. Could you please provide sample data which showcase what you have and then tell us how the desired result should look like.&lt;/P&gt;
&lt;P&gt;About terminology: I'm a bit confused what you call "database" and what you call "file". Is database a table in a database and file a SAS table? Or is it something else?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 01:56:26 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-02-28T01:56:26Z</dc:date>
    <item>
      <title>Assigning value depending on varies filters from a different sources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539127#M148485</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me. I am trying to create a database depending on varies criteria and I am trying to find a way to pull it all together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have, say database1 with values and depending on if a variable&amp;nbsp;received&amp;nbsp;from another source (File1) exists then use values from databases2 that have the variable if exists from File1 . I have identified if the variable&amp;nbsp;exists and now I am trying to set that value from database2 to replace value from database1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 20:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539127#M148485</guid>
      <dc:creator>amyk</dc:creator>
      <dc:date>2019-02-27T20:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning value depending on varies filters from a different sources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539133#M148487</link>
      <description>If you provide some sample data, fake is totally fine, that illustrates your problem with data you're more likley to get a solution. &lt;BR /&gt;&lt;BR /&gt;There's more than likely a way to do this, but a vague general question = a vague general response. If you're just looking for ideas/directions, UPDATE from SQL or data step may be what you need, or you may need to do a join/merge.</description>
      <pubDate>Wed, 27 Feb 2019 20:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539133#M148487</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-27T20:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning value depending on varies filters from a different sources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539138#M148490</link>
      <description>&lt;P&gt;That is the thing I don't&amp;nbsp;know where to start to join things together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to mock up something that maybe helps&amp;nbsp;better to explain what I am trying to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;say in database1 if have&amp;nbsp;V_W = "Hello" and if File1 has Var1 = "PPO"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then in database2 where Var1=PPO&amp;nbsp; update database1 with value in database2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling with how would I do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 21:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539138#M148490</guid>
      <dc:creator>amyk</dc:creator>
      <dc:date>2019-02-27T21:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning value depending on varies filters from a different sources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539155#M148498</link>
      <description>Don't worry about the code or technicalities at this point, create examples of what you have to start with and what you want. Think of as many variations and edge cases as possible.&lt;BR /&gt;&lt;BR /&gt; Honestly, if you don't know that ahead of time it's 10x harder and longer to get the code right.</description>
      <pubDate>Wed, 27 Feb 2019 21:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539155#M148498</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-27T21:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning value depending on varies filters from a different sources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539163#M148502</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create Table OptionSet&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;/P&gt;&lt;P&gt;select a, b, c&lt;/P&gt;&lt;P&gt;if a.V_W = ""&amp;nbsp; or C.V_AWZ = "Y" then a.V_W = b.V_W end;&lt;/P&gt;&lt;P&gt;if a.V_X = ""&amp;nbsp; &amp;nbsp;or C.V_BWZ = "Y" then a.V_X = b.V_X end;&lt;/P&gt;&lt;P&gt;if a.V_Y = ""&amp;nbsp; &amp;nbsp;or C.V_CWZ = "Y" then a.V_Y = b.V_Y end;&lt;/P&gt;&lt;P&gt;if a.V_Z = ""&amp;nbsp; &amp;nbsp;or C.V_DWZ = "Y" then a.V_Z = b.V_Z end;&lt;/P&gt;&lt;P&gt;quit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 22:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539163#M148502</guid>
      <dc:creator>amyk</dc:creator>
      <dc:date>2019-02-27T22:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning value depending on varies filters from a different sources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539205#M148521</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/242815"&gt;@amyk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe it's may be best to start with data. Could you please provide sample data which showcase what you have and then tell us how the desired result should look like.&lt;/P&gt;
&lt;P&gt;About terminology: I'm a bit confused what you call "database" and what you call "file". Is database a table in a database and file a SAS table? Or is it something else?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 01:56:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539205#M148521</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-28T01:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning value depending on varies filters from a different sources</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539390#M148614</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/242815"&gt;@amyk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create Table OptionSet&lt;/P&gt;
&lt;P&gt;as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select a, b, c&lt;/P&gt;
&lt;P&gt;if a.V_W = ""&amp;nbsp; or C.V_AWZ = "Y" then a.V_W = b.V_W end;&lt;/P&gt;
&lt;P&gt;if a.V_X = ""&amp;nbsp; &amp;nbsp;or C.V_BWZ = "Y" then a.V_X = b.V_X end;&lt;/P&gt;
&lt;P&gt;if a.V_Y = ""&amp;nbsp; &amp;nbsp;or C.V_CWZ = "Y" then a.V_Y = b.V_Y end;&lt;/P&gt;
&lt;P&gt;if a.V_Z = ""&amp;nbsp; &amp;nbsp;or C.V_DWZ = "Y" then a.V_Z = b.V_Z end;&lt;/P&gt;
&lt;P&gt;quit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Really recommend following &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s suggestion of data examples. Your pseudocode above references values of multiple variable from multiple tables, A and C, without any consideration of how A and C should relate to ensure the correct values are considered.&lt;/P&gt;
&lt;P&gt;Also multiple basically identical comparison/results often is an indication that maybe the data could be better structured&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 17:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-value-depending-on-varies-filters-from-a-different/m-p/539390#M148614</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-28T17:15:05Z</dc:date>
    </item>
  </channel>
</rss>

