<?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: how to merge data sets with different coding system in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268041#M53022</link>
    <description>&lt;P&gt;1. What are the types of each variable? They need to be the same, so is one numeric and one character, or are they formatted to appear as character with the leading zero. Can you post the proc contents output for each of the variables? The goal is to make them the same, either numeric or character - character is probably better since you don't have to worry about rounding issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2016 19:31:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-05-03T19:31:44Z</dc:date>
    <item>
      <title>how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268021#M53015</link>
      <description>&lt;P&gt;I have two datasets, and I would like to merge with one code. but the coding system is different. the dataset1's code is three numbers, say, 123, the dataset2's code is four numbers, say, 0123&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I would like first create a new variable&lt;/P&gt;&lt;P&gt;icode2=&lt;FONT face="Courier New" size="2"&gt;input (substr(code,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;), &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;but it generates . missing values for all obs&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;i also tried&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;icode2= substr (code, 2,3);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;it generates blank for all obs&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;would you please let me know how to fix it&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 18:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268021#M53015</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-03T18:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268026#M53017</link>
      <description>&lt;P&gt;Translate both strings to numbers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input(code, best.) = input(code2, best.)&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 18:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268026#M53017</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-03T18:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268031#M53019</link>
      <description>&lt;P&gt;Thank you. But I do not get that.&lt;/P&gt;&lt;P&gt;Can you explain in more detail? Step by step, if there are more than two steps?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 19:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268031#M53019</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-03T19:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268041#M53022</link>
      <description>&lt;P&gt;1. What are the types of each variable? They need to be the same, so is one numeric and one character, or are they formatted to appear as character with the leading zero. Can you post the proc contents output for each of the variables? The goal is to make them the same, either numeric or character - character is probably better since you don't have to worry about rounding issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 19:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268041#M53022</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-03T19:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268044#M53023</link>
      <description>&lt;P&gt;both are numerical variables&lt;/P&gt;&lt;P&gt;num 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing the first step. I want to create a new variable, named as icode2&lt;/P&gt;&lt;P&gt;icode2= substr(code1, 2,3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;database1 has code 1, it is like 0123,0231,0234&lt;/P&gt;&lt;P&gt;database2 has code 2, like 123, 231, 234&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I thought of substr to do this, to create a new varaible icode2, then merge it based on&lt;/P&gt;&lt;P&gt;code2=icode2&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 19:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268044#M53023</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-03T19:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268051#M53026</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40773"&gt;@Bal23&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;both are numerical variables&lt;/P&gt;
&lt;P&gt;num 8&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;If both are numerical, how does it have leading zeroes? Is there a format attached? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's numeric you shouldn't&amp;nbsp;need to do anything to merge. &amp;nbsp;You can remove the format if it makes it easier for you to understand. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUBSTR() is a character function, it works on character strings, but you've stated both are numeric so it's not valid to use SUBSTR().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 19:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268051#M53026</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-03T19:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268065#M53031</link>
      <description>&lt;P&gt;I am sorry I have not made it clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two exsisted datasets have their already generated code system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dataset1 &amp;nbsp;code is 0123, 0125, 0156&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;correspoindingly, the dataset 2 code is 123, 125, 156&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;they are just same, but becuase of different versions of coding system&lt;/P&gt;&lt;P&gt;i really just need to delete the dataset1&amp;nbsp; first zero so that I can merge, I need a multiple match merge&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the dataset 1 is a reference dataset with 100 obs, it explains all those meanings of&amp;nbsp;0123, 0125, 156&amp;nbsp; and their realted different cateogries&lt;/P&gt;&lt;P&gt;the dataset2 is a&amp;nbsp; dataset with over 10,000 obs. then the expect merged datasets with have all those obs with different explaination&lt;/P&gt;&lt;P&gt;i need to remove 0 from the dataset1 so that I can merge&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 20:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268065#M53031</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-03T20:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268067#M53033</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40773"&gt;@Bal23&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am sorry I have not made it clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The two exsisted datasets have their already generated code system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The dataset1 &amp;nbsp;code is 0123, 0125, 0156&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;You've stated the variable is numeric. Is it numeric with a format?&amp;nbsp;A numeric variable CANNOT have a leading 0, unless it's formatted. However, when merging the underlying value is used not the formatted value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post a proc contents to clarify this, because what you're saying contradicts itself.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 20:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268067#M53033</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-03T20:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268068#M53034</link>
      <description>&lt;P&gt;If both are numerical, as you state, and just look different because of their format, then they already match. No conversion needed. Data step MERGE and SAS/SQL joins match values based on internal representation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 20:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268068#M53034</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-03T20:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268113#M53048</link>
      <description>&lt;P&gt;They are different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, one would be 0235, the other in dataset2 should be 235,&lt;/P&gt;&lt;P&gt;what is an option to get rid of 0&lt;/P&gt;&lt;P&gt;That is why I tried to substr&amp;nbsp;&lt;/P&gt;&lt;P&gt;but as you said, substr is for character variable&lt;/P&gt;&lt;P&gt;so can you provide a sample code, an option to remove the first zero?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 22:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268113#M53048</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-03T22:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268127#M53053</link>
      <description>&lt;P&gt;Show us the PROC CONTENTS results on both datasets.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 23:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268127#M53053</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-03T23:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268128#M53054</link>
      <description>&lt;P&gt;What's the format on that variable? You say numeric so I'm guessing z4? Remove the leading zero by stripping the format. Then they'll 'look' the same. They're the same regardless, based on the information you've provided.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format var2 8.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2016 23:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268128#M53054</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-03T23:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268288#M53092</link>
      <description>&lt;P&gt;I still do not get that, how to remove the leading zero, these two variables are both numerical&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 14:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268288#M53092</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-04T14:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268289#M53093</link>
      <description>&lt;P&gt;Did you run the code?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post your proc contents - I have no suggestions without this. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, try the merge - does it work?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 14:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268289#M53093</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-04T14:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268294#M53095</link>
      <description>&lt;P&gt;the dataset has three numbers, the variable is a charc varil, length is 3,&lt;/P&gt;&lt;P&gt;the dataset has the variable with four numbers (including the leading zero), is a numberical variable, length is 8 (so I cannot use substr for this one to remove zero, but I do not know how to use&lt;/P&gt;&lt;P&gt;sorry for my previous mistake that I thought both were numerical&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 14:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268294#M53095</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-04T14:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268306#M53099</link>
      <description>&lt;P&gt;That's not making sense. Please post your proc contents.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 15:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268306#M53099</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-04T15:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268310#M53101</link>
      <description>&lt;P&gt;93&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;var1&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;# Variable Type Len Format Informat Label 6&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;var2&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 04 May 2016 15:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268310#M53101</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-04T15:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268313#M53102</link>
      <description>&lt;P&gt;No formats?&lt;/P&gt;
&lt;P&gt;What does each one of those variables look like - to make sure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 15:52:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268313#M53102</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-04T15:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268314#M53103</link>
      <description>&lt;P&gt;var1&amp;nbsp; 0234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0389&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0423&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var2&amp;nbsp;&amp;nbsp; 234&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 389&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 423&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 15:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268314#M53103</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-05-04T15:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to merge data sets with different coding system</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268316#M53104</link>
      <description>&lt;P&gt;data one;&lt;BR /&gt;input var1;&lt;BR /&gt;cards;&lt;BR /&gt;123&lt;BR /&gt;456&lt;BR /&gt;789&lt;BR /&gt;234&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data two;&lt;BR /&gt;input var2 $;&lt;BR /&gt;cards;&lt;BR /&gt;0123&lt;BR /&gt;0456&lt;BR /&gt;0789&lt;BR /&gt;234&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data two_formatted;&lt;BR /&gt;set two;&lt;BR /&gt;var1=input(var2, best12.);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc sort data=one; by var1; run;&lt;BR /&gt;proc sort data=two_formatted; by var1; run;&lt;/P&gt;
&lt;P&gt;data merged;&lt;BR /&gt;merge one two_formatted;&lt;BR /&gt;by var1;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 15:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-merge-data-sets-with-different-coding-system/m-p/268316#M53104</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-04T15:59:15Z</dc:date>
    </item>
  </channel>
</rss>

