<?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 how to merge same data but in two different datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-same-data-but-in-two-different-datasets/m-p/512437#M138020</link>
    <description>&lt;P&gt;I have to merge these two sets of data, which contains exactly the same data, but written in different ways:&lt;/P&gt;&lt;P&gt;&lt;A href="https://s3-ap-southeast-1.amazonaws.com/learn-ap-southeast-1-prod-fleet02-xythos/593a61e7aa84f/4347788?response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27Assignment%25203%2520Q4.txt&amp;amp;response-content-type=text%2Fplain&amp;amp;X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;amp;X-Amz-Date=20181112T092342Z&amp;amp;X-Amz-SignedHeaders=host&amp;amp;X-Amz-Expires=21600&amp;amp;X-Amz-Credential=AKIAJDDBGKVKR5QVHNHA%2F20181112%2Fap-southeast-1%2Fs3%2Faws4_request&amp;amp;X-Amz-Signature=e229ba01805398fa1e367d1334ea986c28cfbba2aab8b17846e89c9f852b5873" rel="nofollow noreferrer" target="_blank"&gt;Offsite data&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* (i);
A123   4Mar1989    8,60000
A037  23Jun1957   21,45000
M015  19Sep1977   17,50000

* (ii);
A123  4Mar1989  8,6,00
***************
    A037 23Jun1957  21,450
**************
 M015 19Sep1977$17,500
***********&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The first record should have&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ID = "A123", DEPT = "A", BIRTHDAY = 10655, YEAR = 1989, SALARY = 8600&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So far my approach has been(which doesn´t work):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data i;
   input $ID $Dep $BIRTHDAY $YEAR $SALARY;
   datalines;
A123   4Mar1989    8,60000
A037  23Jun1957   21,45000
M015  19Sep1977   17,50000
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Nov 2018 03:36:18 GMT</pubDate>
    <dc:creator>torvin10</dc:creator>
    <dc:date>2018-11-13T03:36:18Z</dc:date>
    <item>
      <title>how to merge same data but in two different datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-same-data-but-in-two-different-datasets/m-p/512437#M138020</link>
      <description>&lt;P&gt;I have to merge these two sets of data, which contains exactly the same data, but written in different ways:&lt;/P&gt;&lt;P&gt;&lt;A href="https://s3-ap-southeast-1.amazonaws.com/learn-ap-southeast-1-prod-fleet02-xythos/593a61e7aa84f/4347788?response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27Assignment%25203%2520Q4.txt&amp;amp;response-content-type=text%2Fplain&amp;amp;X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;amp;X-Amz-Date=20181112T092342Z&amp;amp;X-Amz-SignedHeaders=host&amp;amp;X-Amz-Expires=21600&amp;amp;X-Amz-Credential=AKIAJDDBGKVKR5QVHNHA%2F20181112%2Fap-southeast-1%2Fs3%2Faws4_request&amp;amp;X-Amz-Signature=e229ba01805398fa1e367d1334ea986c28cfbba2aab8b17846e89c9f852b5873" rel="nofollow noreferrer" target="_blank"&gt;Offsite data&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* (i);
A123   4Mar1989    8,60000
A037  23Jun1957   21,45000
M015  19Sep1977   17,50000

* (ii);
A123  4Mar1989  8,6,00
***************
    A037 23Jun1957  21,450
**************
 M015 19Sep1977$17,500
***********&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The first record should have&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ID = "A123", DEPT = "A", BIRTHDAY = 10655, YEAR = 1989, SALARY = 8600&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So far my approach has been(which doesn´t work):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data i;
   input $ID $Dep $BIRTHDAY $YEAR $SALARY;
   datalines;
A123   4Mar1989    8,60000
A037  23Jun1957   21,45000
M015  19Sep1977   17,50000
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 03:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-same-data-but-in-two-different-datasets/m-p/512437#M138020</guid>
      <dc:creator>torvin10</dc:creator>
      <dc:date>2018-11-13T03:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge same data but in two different datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-same-data-but-in-two-different-datasets/m-p/512441#M138023</link>
      <description>&lt;P&gt;What type of output are you looking for, a text file or a SAS dataset? Do already have these read into SAS datasets? What is the original source and can you read those in already or is that part of the problem you’re facing? This was posted on SO and a solution provided, if that didn’t work, please outline how.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say merge, &amp;nbsp;but your code only reads in a data set so have you attempted to merge these at all so far?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/246072"&gt;@torvin10&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have to merge these two sets of data, which contains exactly the same data, but written in different ways:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://s3-ap-southeast-1.amazonaws.com/learn-ap-southeast-1-prod-fleet02-xythos/593a61e7aa84f/4347788?response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27Assignment%25203%2520Q4.txt&amp;amp;response-content-type=text%2Fplain&amp;amp;X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;amp;X-Amz-Date=20181112T092342Z&amp;amp;X-Amz-SignedHeaders=host&amp;amp;X-Amz-Expires=21600&amp;amp;X-Amz-Credential=AKIAJDDBGKVKR5QVHNHA%2F20181112%2Fap-southeast-1%2Fs3%2Faws4_request&amp;amp;X-Amz-Signature=e229ba01805398fa1e367d1334ea986c28cfbba2aab8b17846e89c9f852b5873" target="_blank" rel="nofollow noreferrer"&gt;Offsite data&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;* (i);
A123   4Mar1989    8,60000
A037  23Jun1957   21,45000
M015  19Sep1977   17,50000

* (ii);
A123  4Mar1989  8,6,00
***************
    A037 23Jun1957  21,450
**************
 M015 19Sep1977$17,500
***********&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The first record should have&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ID = "A123", DEPT = "A", BIRTHDAY = 10655, YEAR = 1989, SALARY = 8600&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So far my approach has been(which doesn´t work):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;data i;
   input $ID $Dep $BIRTHDAY $YEAR $SALARY;
   datalines;
A123   4Mar1989    8,60000
A037  23Jun1957   21,45000
M015  19Sep1977   17,50000
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 03:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-same-data-but-in-two-different-datasets/m-p/512441#M138023</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-13T03:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge same data but in two different datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-same-data-but-in-two-different-datasets/m-p/512449#M138029</link>
      <description>&lt;P&gt;Im&amp;nbsp;trying to make a SAS&amp;nbsp;data file which&amp;nbsp;contains&amp;nbsp;five&amp;nbsp; variables. The original source is a .txt document. And i couldn´t find the solved problem that you mentioned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´ve tried merging the datasets by doing so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data i ii;
  input DEPT $1. @1 ID $ BIRTHDAY :date9. +(-5) YEAR :8. SALARY comma10.0;
  datalines;
A123   4Mar1989    8,60000
A037  23Jun1957   21,45000
M015  19Sep1977   17,50000

A123  4Mar1989  8,6,00&lt;BR /&gt;
***************
    A037 23Jun1957  21,450
**************
 M015 19Sep1977$17,500
***********
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However this creates a set where the * also is a part of the dataset, which is unwanted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 05:01:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-same-data-but-in-two-different-datasets/m-p/512449#M138029</guid>
      <dc:creator>torvin10</dc:creator>
      <dc:date>2018-11-13T05:01:09Z</dc:date>
    </item>
  </channel>
</rss>

