<?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 by numeric variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666471#M199414</link>
    <description>&lt;P&gt;for example when I'm merging this row from all dataset&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RIGHT,B cell,Element 4 / Cluster 01,IL18,2,5.116604&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;with this row from cd45&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LEFT,B cell,Element 4 / Cluster 01,CD45,1,5.042122&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I only need row in the output like this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LEFT,B cell,Element 4 / Cluster 01,CD45,1,5.042122, IL18&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 20:07:34 GMT</pubDate>
    <dc:creator>mona4u</dc:creator>
    <dc:date>2020-07-01T20:07:34Z</dc:date>
    <item>
      <title>merging by numeric variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666438#M199395</link>
      <description>&lt;P&gt;I have two data sets, I'm trying to merge and I have difficulty with it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data all;&lt;BR /&gt;infile datalines delimiter=','; &lt;BR /&gt;input ALAT $ CELL_TYPE $ XXGRPID : $ 13-36 PARAMCD $ n1 sum1; &lt;BR /&gt;datalines ; &lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 01,MIP3A,1,1.052443&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 01,MCP2,1,1.32448&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 01,IL18,1,4.755031&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 01,IL1B,2,3.298&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 01,IL23,2,4.08961&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 01,IL18,2,5.116604&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 01,MDC,2,6.731015&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 01,MMP9,2,8.833029&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,IL10,1,1.080867&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,TNFA,1,1.125977&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,IL17A,1,1.389087&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,IL1B,1,1.424445&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,IL17A,1,1.426559&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,IL8,1,6.045133&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,IL8,1,24.14631&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,MIP3A,2,3.106238&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,MCP2,2,6.049441&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,IL23,2,9.139846&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,IL6,3,4.573806&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,IL10,3,4.80698&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,MCP2,3,30.499324&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,IL12P35,4,17.608009&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,MMP9,4,29.593297&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,IL18,4,87.835631&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,IL23,4,115.177666&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,IL1B,4,120.746378&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,IL18,4,397.20805&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,MMP9,4,513.050819&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,MDC,4,869.979232&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,MDC,5,74.628744&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,IL6,1,1.092431&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,IL8,1,1.112689&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,TNFA,1,1.199949&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,TNFA,1,1.415118&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,IL17A,1,3.476767&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,IL10,2,2.823709&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,IL6,2,7.815049&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,IL17A,3,3.274684&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,IL1B,3,17.548967&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,IL23,3,41.185114&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,MCP2,4,14.063476&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,IL10,4,21.271532&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,MCP2,4,36.627036&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,IL1B,5,53.167223&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,IL23,5,134.282479&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,MMP9,5,151.561209&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,IL18,5,210.739236&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,IL18,5,213.896347&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,MMP9,5,362.274311&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,MDC,5,1127.607899&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,MDC,5,1375.540752&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 10,IL10,1,1.462359&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 10,IL1B,1,2.832492&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 10,MMP9,1,6.815063&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 10,IL18,1,8.054599&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 10,MDC,1,8.580185&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 10,IL23,1,9.352442&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,MIP3A,1,1.027387&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,IL6,1,1.111179&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,IL23,1,1.209556&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,IL1B,1,1.330708&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,IL17A,1,1.479449&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 11,IL12P35,1,1.865239&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,IL10,1,3.810738&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 11,MIP3A,1,5.648318&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,IL12P35,2,5.071999&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 11,MCP2,2,7.793822&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,MMP9,2,13.794082&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,MDC,2,19.827618&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 11,IL18,2,23.457758&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 11,IL23,3,9.420101&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 11,IL1B,3,15.071652&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 11,MMP9,3,40.127112&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 11,MDC,3,80.743343&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 11,IL18,3,102.263439&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 12,IL6,1,1.092244&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 12,IL23,1,1.145162&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 12,MCP2,1,3.248554&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 12,IL8,1,3.871407&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 12,IL23,2,2.330385&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 12,IL8,2,4.22409&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 12,IL1B,2,14.739847&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 12,MMP9,3,3.615062&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 12,MMP9,3,6.240014&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 12,IL18,3,13.520781&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 12,IL18,4,12.77423&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 12,IL1B,4,14.212594&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 12,MDC,4,23.995677&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 12,MDC,4,34.696228&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,IL8,1,1.128982&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,TNFA,1,1.44388&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,IL6,1,2.082078&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,IL17A,1,4.402744&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,IL10,2,7.772832&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,IL17A,3,5.103111&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,IL6,3,5.812486&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,MCP2,3,20.320418&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,IL10,4,14.683562&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,IL1B,4,31.831035&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,IL1B,4,37.352226&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,IL23,4,41.013705&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,IL23,4,43.419341&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,MCP2,5,20.093032&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,MMP9,5,91.797495&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,IL18,5,135.063839&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,MMP9,5,164.904232&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,IL18,5,204.537065&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,MDC,5,963.484488&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,MDC,5,1352.556329&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 14,MCP2,1,1.394026&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 14,IL1B,1,1.436841&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 14,MMP9,1,2.799828&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 14,IL23,1,3.091322&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 14,MDC,1,4.155055&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 14,IL23,1,4.427726&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 14,IL18,1,4.688802&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 14,IL18,1,6.105653&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 14,MMP9,1,8.197537&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 14,MDC,1,9.795185&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 15,MMP9,1,1.072943&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 15,IL18,2,2.900656&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 15,MDC,3,8.709494&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 15,MDC,4,33.672651&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 16,TNFA,1,1.195228&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 16,TNFA,1,1.292952&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 16,MIP3A,1,2.846047&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 16,MIP3A,1,3.520069&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 16,MDC,1,4.620938&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 16,IL18,1,9.352088&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 16,IL18,2,4.376269&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 16,IL23,2,7.823603&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 16,MDC,2,7.954463&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 16,IL23,2,11.08295&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,IL17A,1,1.307045&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,MIP3A,1,1.674991&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,IL8,1,1.695314&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 17,IL8,1,2.280916&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 17,IL6,1,2.367407&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,TNFA,2,2.312621&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,MCP2,2,4.437333&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,IL1B,2,7.251691&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 17,IL23,2,9.972712&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 17,MCP2,3,5.721486&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 17,IL1B,3,12.466984&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 17,IL10,3,16.6982&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,IL23,3,16.838101&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,MMP9,5,40.266312&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 17,MMP9,5,59.809416&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 17,IL18,5,69.125958&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,IL18,5,175.913002&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,MDC,5,454.373929&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 17,MDC,5,484.506671&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,IL17A,1,1.033533&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 18,IL12P35,1,1.033765&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,TNFA,1,1.03978&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 18,IL10,1,1.084055&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 18,IL23,1,1.312616&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,IL8,1,3.166954&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,IL1B,2,2.288673&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 18,MCP2,2,3.402&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,MCP2,2,3.702223&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,IL10,3,4.570338&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,IL23,3,5.178791&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,IL6,3,5.487968&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 18,MMP9,3,9.448696&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 18,IL18,4,28.503497&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,MMP9,4,33.396653&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,IL18,5,19.346905&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 18,MDC,5,215.503145&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,MDC,5,354.41396&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 19,IL23,1,1.022038&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 19,IL6,1,1.471786&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 19,MMP9,1,1.91916&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 19,MDC,1,3.656766&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 19,IL10,1,4.236916&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 19,IL18,1,4.585735&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 19,MDC,2,9.187698&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,IL6,1,1.014265&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,IL6,1,1.232044&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,IL10,1,1.351696&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,IL12P35,1,1.42176&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,MIP3A,1,2.321669&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,IL10,1,2.446623&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,IL17A,1,2.459378&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,IL8,1,4.71809&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,MCP2,1,7.646246&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,IL1B,2,6.401135&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,MCP2,3,6.227043&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,IL1B,3,19.425768&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,IL23,3,47.362551&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,IL23,4,21.779931&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,MMP9,4,97.092989&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,IL18,5,65.762519&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,MMP9,5,157.286928&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,IL18,5,305.109008&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,MDC,5,326.240111&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,MDC,5,511.845525&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;data cd45;&lt;BR /&gt;infile datalines delimiter=','; &lt;BR /&gt;input ALAT $ CELL_TYPE $ XXGRPID : $ 13-36 cd45 $ n1 sum1; &lt;BR /&gt;datalines ; &lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 01,CD45,1,5.042122&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 01,CD45,4,13.864326&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 06,CD45,4,405.028771&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 06,CD45,5,39.414534&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 08,CD45,5,672.423284&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 08,CD45,5,1010.053084&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 11,CD45,1,1.145423&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 12,CD45,5,49.411095&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 12,CD45,5,55.321253&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 13,CD45,5,622.640166&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 13,CD45,5,1002.174066&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 14,CD45,1,3.815439&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 14,CD45,1,10.778137&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 15,CD45,2,8.488739&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 15,CD45,3,6.792764&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 17,CD45,1,2.039313&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 18,CD45,4,20.873398&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 18,CD45,5,26.128614&lt;BR /&gt;LEFT,B cell,Element 4 / Cluster 23,CD45,4,6.611934&lt;BR /&gt;RIGHT,B cell,Element 4 / Cluster 23,CD45,4,7.515591&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;I want help to merge these two data sets when&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ALAT&amp;nbsp; CELL_TYPE&amp;nbsp; XXGRPID&amp;nbsp; &amp;nbsp;n1 sum1 are the same in both datasets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 17:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666438#M199395</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2020-07-01T17:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: merging by numeric variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666439#M199396</link>
      <description>&lt;P&gt;It is always a bad idea to merge two datasets on decimals (the problem is with precision). You can try rounding the data to second decimal and merge on it in a proc sql step. I do not know of a way to do it in&amp;nbsp; a datastep.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as n example on the where condition you can use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;round(a.var1,0.01) = round(b.var1,0.01)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 17:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666439#M199396</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-07-01T17:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: merging by numeric variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666443#M199399</link>
      <description>&lt;P&gt;On a quick glance through the datasets&amp;nbsp;(thank you, by the way, for providing your data in working DATALINES code), it looks like there aren't any rows where&amp;nbsp;&lt;SPAN&gt;ALAT, CELL_TYPE, XXGRPID, N1, and SUM1 are the same in both datasets (even when rounding SUM1, as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214340"&gt;@smantha&lt;/a&gt;&amp;nbsp;recommended). Do you expect there to be rows that match on those variables? Could you provide more details and an example?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 18:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666443#M199399</guid>
      <dc:creator>mklangley</dc:creator>
      <dc:date>2020-07-01T18:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: merging by numeric variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666471#M199414</link>
      <description>&lt;P&gt;for example when I'm merging this row from all dataset&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RIGHT,B cell,Element 4 / Cluster 01,IL18,2,5.116604&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;with this row from cd45&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LEFT,B cell,Element 4 / Cluster 01,CD45,1,5.042122&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I only need row in the output like this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LEFT,B cell,Element 4 / Cluster 01,CD45,1,5.042122, IL18&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666471#M199414</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2020-07-01T20:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: merging by numeric variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666479#M199419</link>
      <description>&lt;P&gt;Those two rows don't match on &lt;STRONG&gt;ALAT&lt;/STRONG&gt; (RIGHT vs LEFT), &lt;STRONG&gt;N1 &lt;/STRONG&gt;(2 vs 1), or &lt;STRONG&gt;SUM1&amp;nbsp;&lt;/STRONG&gt;(5.116604 vs&amp;nbsp;&lt;SPAN&gt;5.042122)&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;How do you determine that they should be merged?&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/134228"&gt;@mona4u&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want help to merge these two data sets when&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ALAT&amp;nbsp; CELL_TYPE&amp;nbsp; XXGRPID&amp;nbsp; &amp;nbsp;n1 sum1 are the same in both datasets.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/merging-by-numeric-variables/m-p/666479#M199419</guid>
      <dc:creator>mklangley</dc:creator>
      <dc:date>2020-07-01T20:44:09Z</dc:date>
    </item>
  </channel>
</rss>

