<?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: Merging datasets with different variable names. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Merging-datasets-with-different-variable-names/m-p/901075#M40163</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;merge LowRatedProducts (in=a rename=(product=product_id)) Qed.Products (in=b);
by product_id;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Nov 2023 14:26:52 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-11-01T14:26:52Z</dc:date>
    <item>
      <title>Merging datasets with different variable names.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Merging-datasets-with-different-variable-names/m-p/901074#M40162</link>
      <description>&lt;P&gt;Is it possible to merge 2 data sets with different variable names for the same thing?&lt;/P&gt;&lt;P&gt;For example, my product sheet has a column product_id which is same as column product in reviews but im unable to join them due to different names. Is it possible to join the two tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Merge LowRatedProducts with Products to access prices */&lt;BR /&gt;data LowRatedProductsWithPrices;&lt;BR /&gt;merge LowRatedProducts (in=a) Qed.Products (in=b);&lt;BR /&gt;by product_id;&amp;nbsp;&lt;BR /&gt;if a and b;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* Print the low-rated products along with their prices */&lt;BR /&gt;PROC PRINT DATA=LowRatedProductsWithPrices;&lt;BR /&gt;title "Low-Rated Products and Their Prices";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This shows an error because review doesn't have products_id but product.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 14:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Merging-datasets-with-different-variable-names/m-p/901074#M40162</guid>
      <dc:creator>Adi27</dc:creator>
      <dc:date>2023-11-01T14:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merging datasets with different variable names.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Merging-datasets-with-different-variable-names/m-p/901075#M40163</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;merge LowRatedProducts (in=a rename=(product=product_id)) Qed.Products (in=b);
by product_id;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Nov 2023 14:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Merging-datasets-with-different-variable-names/m-p/901075#M40163</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-01T14:26:52Z</dc:date>
    </item>
  </channel>
</rss>

