<?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: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966271#M376084</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I agree, when I run the original code, I do not have any errors in the SAS log. However, the issue might be that the output is not what was expected or desired. Here's the output I get when I do a PROC PRINT on the the original work.xyz data after the merge:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1746986147530.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106858i17773A4E32A75BC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1746986147530.png" alt="Cynthia_sas_0-1746986147530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the log from the original code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1746986192994.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106859iC247FF6371D82BB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1746986192994.png" alt="Cynthia_sas_1-1746986192994.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, I think that this might be a case where using IN= option for the merge might be useful. Also, in this case, with the original code, it appears that there might be issues, unexpected results for ID=1, NAME=A and ID=2, NAME=A and the same with NAME=B.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So if you change the code a bit so that there are 2 different variables, NAMEA in dataset A and NAMEB in dataset B, then this code can be run as a test:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA A;
INPUT id nameA $ Height;
datalines;
1 A 1
3 B 1
5 C 2
7 D 2
9 E 2
;
run;
  
DATA B;
INPUT id nameB $ weight;
datalines;
2 A 2
4 B 3
5 C 4
7 D 5
;
run;
 
proc sort data=A;
by ID;
run;
 
proc sort data=B;
by ID;
run;

DATA xyz A_only B_only BOTH ;
MERGE A(in=froma) B(in=fromb);
BY ID;
output xyz;
** now test merge in more depth by testing in= option values;
** and outputting observations to different output data tables;
if froma = 1 and fromb = 1 then output both;
else if froma=1 and fromb = 0 then output A_only;
else if froma=0 and fromb = 1 then output B_only;
RUN;

proc print data=xyz;
  title '1) XYZ data table';
run;

proc print data=A_only;
title '2) A_only data table';
run;

proc print data=B_only;
title '3) B_only data table';
run;

proc print data=both;
title '4) Both data table';
run;
title;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Then this is what is in the log:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_2-1746986546014.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106860i08683144AC647FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_2-1746986546014.png" alt="Cynthia_sas_2-1746986546014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And the PROC PRINT output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_3-1746986742409.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106861i411BABAC186B37AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_3-1746986742409.png" alt="Cynthia_sas_3-1746986742409.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm not clear on whether the original code posted has a logic program or a data problem. But using IN= might help clarify the solution.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 May 2025 18:06:41 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2025-05-11T18:06:41Z</dc:date>
    <item>
      <title>I AM NOT ABLE TO EXECUTE MERGE BETWEEN TWO DATA SETS. SAS IS NOT ABLE TO DETECT DATA SET A AND B IN</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966265#M376082</link>
      <description>&lt;P&gt;DATA A;&lt;BR /&gt;INPUT id name$ Height;&lt;BR /&gt;datalines;&lt;BR /&gt;1 A 1&lt;BR /&gt;3 B 1&lt;BR /&gt;5 C 2&lt;BR /&gt;7 D 2&lt;BR /&gt;9 E 2&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;DATA B;&lt;BR /&gt;INPUT id name$ weight;&lt;BR /&gt;datalines;&lt;BR /&gt;2 A 2&lt;BR /&gt;4 B 3&lt;BR /&gt;5 C 4&lt;BR /&gt;7 D 5&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;;&lt;BR /&gt;proc sort data=A;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;BR /&gt;;&lt;BR /&gt;proc sort data=B;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;DATA xyz;&lt;BR /&gt;MERGE A B;&lt;BR /&gt;BY ID;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 17:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966265#M376082</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-11T17:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966266#M376083</link>
      <description>&lt;P&gt;Please do not type in ALL CAPITAL LETTERS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you get errors in the log, then please show us the &lt;FONT color="#FF0000"&gt;entire&lt;/FONT&gt; log. In fact, please do that for this problem and all future problems. Do not paraphrase error messages.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run your code, I get no errors at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 17:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966266#M376083</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-11T17:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966271#M376084</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I agree, when I run the original code, I do not have any errors in the SAS log. However, the issue might be that the output is not what was expected or desired. Here's the output I get when I do a PROC PRINT on the the original work.xyz data after the merge:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1746986147530.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106858i17773A4E32A75BC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1746986147530.png" alt="Cynthia_sas_0-1746986147530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the log from the original code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1746986192994.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106859iC247FF6371D82BB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1746986192994.png" alt="Cynthia_sas_1-1746986192994.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, I think that this might be a case where using IN= option for the merge might be useful. Also, in this case, with the original code, it appears that there might be issues, unexpected results for ID=1, NAME=A and ID=2, NAME=A and the same with NAME=B.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So if you change the code a bit so that there are 2 different variables, NAMEA in dataset A and NAMEB in dataset B, then this code can be run as a test:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA A;
INPUT id nameA $ Height;
datalines;
1 A 1
3 B 1
5 C 2
7 D 2
9 E 2
;
run;
  
DATA B;
INPUT id nameB $ weight;
datalines;
2 A 2
4 B 3
5 C 4
7 D 5
;
run;
 
proc sort data=A;
by ID;
run;
 
proc sort data=B;
by ID;
run;

DATA xyz A_only B_only BOTH ;
MERGE A(in=froma) B(in=fromb);
BY ID;
output xyz;
** now test merge in more depth by testing in= option values;
** and outputting observations to different output data tables;
if froma = 1 and fromb = 1 then output both;
else if froma=1 and fromb = 0 then output A_only;
else if froma=0 and fromb = 1 then output B_only;
RUN;

proc print data=xyz;
  title '1) XYZ data table';
run;

proc print data=A_only;
title '2) A_only data table';
run;

proc print data=B_only;
title '3) B_only data table';
run;

proc print data=both;
title '4) Both data table';
run;
title;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Then this is what is in the log:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_2-1746986546014.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106860i08683144AC647FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_2-1746986546014.png" alt="Cynthia_sas_2-1746986546014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And the PROC PRINT output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_3-1746986742409.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106861i411BABAC186B37AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_3-1746986742409.png" alt="Cynthia_sas_3-1746986742409.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm not clear on whether the original code posted has a logic program or a data problem. But using IN= might help clarify the solution.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 18:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966271#M376084</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2025-05-11T18:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: I AM NOT ABLE TO EXECUTE MERGE BETWEEN TWO DATA SETS. SAS IS NOT ABLE TO DETECT DATA SET A AND B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966274#M376085</link>
      <description>&lt;P&gt;You seem to have two different KEY variables.&amp;nbsp; &amp;nbsp;Which one is the important one?&amp;nbsp; ID or NAME?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Merging by NAME leads to a different result&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1746989215993.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106862iB4CC9372A5AFAD04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1746989215993.png" alt="Tom_0-1746989215993.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;than merging by ID.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_1-1746989236959.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106863i164735E9329C867C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_1-1746989236959.png" alt="Tom_1-1746989236959.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 18:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966274#M376085</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-11T18:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: I AM NOT ABLE TO EXECUTE MERGE BETWEEN TWO DATA SETS. SAS IS NOT ABLE TO DETECT DATA SET A AND B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966277#M376086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if your subject line has been truncated; was there more to it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide a data step with &lt;FONT face="courier new,courier"&gt;datalines&lt;/FONT&gt; to show what output data set you are expecting, along with a brief explanation of the logic rules that generate your output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 21:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966277#M376086</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-11T21:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966298#M376087</link>
      <description>&lt;P&gt;I think we need to hear from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/474922"&gt;@Shailesh_R_T&lt;/a&gt;&amp;nbsp;about what the problem is, in much more detail. Everyone guessing different things isn't really a good approach.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 11:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966298#M376087</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-12T11:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966331#M376096</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;i am beginner, currently learning SAS basics. Even i don't have solution for this, i tried with proc print it worked out but still don't know if its the right way, if anyone came across solution for this please approach or discuss. Can anyone help me with mock tests or daily quiz for practice purpose for base sas examination&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 16:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966331#M376096</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-12T16:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966333#M376098</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/474922"&gt;@Shailesh_R_T&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;i am beginner, currently learning SAS basics. Even i don't have solution for this, i tried with proc print it worked out but still don't know if its the right way, if anyone came across solution for this please approach or discuss&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I asked to see the log. If there are errors in the log, SHOW US the log! Even if you are a beginner, you can explain better and provide us with more information (which we have specifically requested).&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 16:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966333#M376098</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-12T16:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966334#M376099</link>
      <description>&lt;P&gt;please have a look a discuss&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 16:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966334#M376099</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-12T16:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966335#M376100</link>
      <description>&lt;P&gt;Many people here refuse to download file attachments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please paste whatever text you want us to see into your reply.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 16:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966335#M376100</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-12T16:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966338#M376101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Part of the subject says "I am unable to execute merge...", but the log shows the merge has been executed.&lt;/P&gt;
&lt;P&gt;Another part of the subject says "SAS is not able to detect data set A and B...", but the log shows data set A and B were detected when they were used in the merge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you happy with the results of the final data set? If yes, then what is your question? If no, then what result did you expect to get instead - please supply a data step with &lt;FONT face="courier new,courier"&gt;datalines&lt;/FONT&gt; showing the output you expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 17:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966338#M376101</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-12T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966339#M376102</link>
      <description>might be you are right&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 May 2025 17:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966339#M376102</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-12T17:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966355#M376109</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; As several members have pointed out, your original code runs without error. Therefore, you either have a data problem or a program logic problem. Without more definition from you about exactly why you think your merge is not working, with examples, and what you would consider to be the correct results, with examples, it is nearly impossible to provide constructive suggestions. Several of us have posted information about how your original code is working without errors. There have also been repeated guesses about whether your using the correct variables in the merge or whether you need to merge by both ID and NAME or whether there is something wrong with your data. However, without some further clarification from you, it is hard to help.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 20:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966355#M376109</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2025-05-12T20:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966582#M376176</link>
      <description>&lt;P&gt;i am not happy with the results. data set A and B has not merged in output window despite showing no error in log. As per my knowledge the code is also right. I have attached code and log window for your referance&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966582#M376176</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-15T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966583#M376177</link>
      <description>&lt;P&gt;here is code and log window for your reference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966583#M376177</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-15T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966585#M376178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share the result that you have and also show us the result that you want (using a data step with &lt;FONT face="courier new,courier"&gt;datalines&lt;/FONT&gt;) so that we can see what the difference is between the result that you have and the result that you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also tell us some rows that you think are incorrect and why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966585#M376178</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-15T14:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966586#M376179</link>
      <description>&lt;P&gt;I got the expected result using proc print syntax at the end&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966586#M376179</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-15T14:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966589#M376181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to make sure, are you saying using you have a solution now (using proc print)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966589#M376181</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-15T14:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966590#M376182</link>
      <description>&lt;P&gt;Paste the text of the code and text of the log directly into your reply. Do not include it as an attachment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And since we have asked many times, I ask one more time ... please EXPLAIN what is wrong with the results.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966590#M376182</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-15T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: I am not able to execute merge between two data sets. SAS is not able to detect data set A and B</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966591#M376183</link>
      <description>&lt;P&gt;So the actual question was how to look at the dataset created by the data step with the merge statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS Please try to avoid attaching files.&amp;nbsp; When sharing code and log please share as text and use the Insert SAS Code or Insert Code buttons in the icon bar of the forum editor.&amp;nbsp; The same for data listings if you can (ODS output does make that almost impossible).&amp;nbsp; If you must share an image insert the image using the Insert Photos icon (or just paste it in).&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-EXECUTE-MERGE-BETWEEN-TWO-DATA-SETS-SAS-IS-NOT/m-p/966591#M376183</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-15T14:38:01Z</dc:date>
    </item>
  </channel>
</rss>

