<?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: Questions for merging datasets in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Questions-for-merging-datasets/m-p/483992#M6002</link>
    <description>&lt;P&gt;I have successfully add the name of dataset beside the variable. Thank you so much!&lt;/P&gt;</description>
    <pubDate>Sat, 04 Aug 2018 09:40:53 GMT</pubDate>
    <dc:creator>233</dc:creator>
    <dc:date>2018-08-04T09:40:53Z</dc:date>
    <item>
      <title>Questions for merging datasets</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-for-merging-datasets/m-p/483988#M6000</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two datasets, one is about sale of beer and another is about sale of snacks.&lt;/P&gt;&lt;P&gt;The two datasets have the same variables but different values, and below are part of data from beer data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IRI_KEY WEEK SY GE VEND ITEM UNITS DOLLARS F D PR&lt;BR /&gt;664497 1114 0 1 41633 2154 3 2.97 NONE 0 0&lt;BR /&gt;664497 1114 0 2 41633 145 6 13.14 NONE 0 0&lt;BR /&gt;664497 1114 0 1 41633 2119 3 2.97 NONE 0 0&lt;BR /&gt;664497 1114 0 2 41633 135 3 6.57 NONE 0 0&lt;BR /&gt;664497 1114 0 1 41633 2140 1 0.99 NONE 0 0&lt;BR /&gt;664497 1114 0 1 41633 2155 2 1.98 NONE 0 0&lt;BR /&gt;664497 1114 0 2 41633 150 1 0.69 NONE 0 0&lt;BR /&gt;664497 1114 0 2 41633 115 3 2.07 NONE 0 0&lt;BR /&gt;664497 1114 0 4 41633 136 6 13.14 NONE 0 0&lt;BR /&gt;664497 1114 0 1 28400 992 3 2.97 NONE 0 0&lt;BR /&gt;664497 1114 0 2 28400 1459 2 0.50 NONE 0 0&lt;BR /&gt;664497 1114 0 1 28400 981 3 2.97 NONE 0 0&lt;BR /&gt;664497 1114 0 1 28400 1180 2 5.98 NONE 0 0&lt;BR /&gt;664497 1114 0 4 28400 988 1 0.99 NONE 0 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a newbie and not quite familiar with many procedures.&lt;/P&gt;&lt;P&gt;I was wondering is there a procedure&amp;nbsp; I could use to let me point out which part of data is from beer and which part of data is from snack after I merge the two datasets? Could I create a categorical variable and maybe use some procedures to point out each row represents the sale from beer or snack? Any suggestions will be really appreciate!&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 08:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-for-merging-datasets/m-p/483988#M6000</guid>
      <dc:creator>233</dc:creator>
      <dc:date>2018-08-04T08:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Questions for merging datasets</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-for-merging-datasets/m-p/483991#M6001</link>
      <description>&lt;P&gt;You don't merge them, you stack them, and you can use several "tricks" to determine the "type":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set
  beer
  snacks
  indsname=dsname
;
product = dsname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Alternatively, you can use in= dataset options and evaluate the variables from there to set your product.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 09:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-for-merging-datasets/m-p/483991#M6001</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-04T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Questions for merging datasets</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-for-merging-datasets/m-p/483992#M6002</link>
      <description>&lt;P&gt;I have successfully add the name of dataset beside the variable. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 09:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-for-merging-datasets/m-p/483992#M6002</guid>
      <dc:creator>233</dc:creator>
      <dc:date>2018-08-04T09:40:53Z</dc:date>
    </item>
  </channel>
</rss>

