<?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: Merge duplicating values for what should be null responses in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984070#M379650</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/480592"&gt;@ligbag4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry, I'm realizing I wasn't clear in my initial question. I'm not having the problem when I print the merged dataset in SAS. The issue is occurring when I export the dataset into a xlsx file.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why are you guys always posting only half (or sometimes, even a tenth) of the real issue????&lt;/P&gt;
&lt;P&gt;Maxim 42!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post code and log of your Excel export, so we can recreate the issue. Use the data I created with DATA steps as source, or also show us your original data in DATA steps, as I did.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2026 19:20:43 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2026-02-25T19:20:43Z</dc:date>
    <item>
      <title>Merge duplicating values for what should be null responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984062#M379644</link>
      <description>&lt;P&gt;I'm trying to merge data sets from two different years that identify number of births, by race, by geographic location. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year_1&lt;/P&gt;&lt;P&gt;Location&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # of Births&lt;/P&gt;&lt;P&gt;Location_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;Location_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;Location_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;Location_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Race_5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year_2&lt;/P&gt;&lt;P&gt;Location&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # of Births&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;data merged;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;merge race_year1 (rename=(count=race_year1))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;race_year2 (rename=(count=race_year2));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;by Location;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However, the dataset output is coming out like this:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Location&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # of Births Year 1&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # of Births Year 2&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Race_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I'm wanting this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Location&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # of Births Year 1&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # of Births Year 2&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Race_1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7&lt;/P&gt;&lt;P&gt;Location_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race_5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've tried merging by race as well, using the following code:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;data merged;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;merge race_year1 (rename=(count=race_year1))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;race_year2 (rename=(count=race_year2));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;by Location Race;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But get the same result. Anybody know how to get SAS to provide null values instead of re-ordering and duplicating?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Edit: I realize I wasn't clear in my initial question. I'm not having the issue with the re-ordering and duplication taking place in SAS. It appears that's only occurring when I'm exporting the merged dataset to an xlsx file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Export code I'm using:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;proc export data=merged&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;outfile="[filelocation]\merged.xlsx"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbms=xlsx&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;replace;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Feb 2026 19:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984062#M379644</guid>
      <dc:creator>ligbag4</dc:creator>
      <dc:date>2026-02-25T19:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merge duplicating values for what should be null responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984066#M379646</link>
      <description>&lt;P&gt;You need to merge by location &lt;EM&gt;and&lt;/EM&gt; race:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have1;
input location :$10. race $ count;
datalines;
Location_1          Race_1           0
Location_1          Race_2           1
Location_1          Race_3           2
Location_1          Race_4           3
Location_1          Race_5           0
;

data have2;
input location :$10. race $ count;
datalines;
Location_1         Race_1         4
Location_1         Race_2         5
Location_1         Race_3         6
Location_1         Race_4         7
Location_1         Race_5         8
;

data want;
merge
  have1 (rename=(count=count1))
  have2 (rename=(count=count2))
;
by location race;
run;

proc print data=want noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;location	race	count1	count2
Location_1	Race_1	0	4
Location_1	Race_2	1	5
Location_1	Race_3	2	6
Location_1	Race_4	3	7
Location_1	Race_5	0	8&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Feb 2026 18:52:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984066#M379646</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-02-25T18:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Merge duplicating values for what should be null responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984067#M379647</link>
      <description>&lt;P&gt;Sorry, I'm realizing I wasn't clear in my initial question. I'm not having the problem when I print the merged dataset in SAS. The issue is occurring when I export the dataset into a xlsx file.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 19:11:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984067#M379647</guid>
      <dc:creator>ligbag4</dc:creator>
      <dc:date>2026-02-25T19:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merge duplicating values for what should be null responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984068#M379648</link>
      <description>&lt;P&gt;I suggest you run the code that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;posted and start from there.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 19:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984068#M379648</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2026-02-25T19:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Merge duplicating values for what should be null responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984069#M379649</link>
      <description>&lt;P&gt;Make sure you are printing the right INPUT datasets.&amp;nbsp; &amp;nbsp;Your listings says "YEAR1" and your code references RACE_YEAR1 instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also make sure you are printing the right OUTPUT dataset.&amp;nbsp; Your code says it is creating MERGED.&amp;nbsp; So first check the SAS log and make sure that the data step completed and made a new version of MERGED and then make sure you print that new dataset and not some other dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 19:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984069#M379649</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-02-25T19:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merge duplicating values for what should be null responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984070#M379650</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/480592"&gt;@ligbag4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry, I'm realizing I wasn't clear in my initial question. I'm not having the problem when I print the merged dataset in SAS. The issue is occurring when I export the dataset into a xlsx file.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why are you guys always posting only half (or sometimes, even a tenth) of the real issue????&lt;/P&gt;
&lt;P&gt;Maxim 42!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post code and log of your Excel export, so we can recreate the issue. Use the data I created with DATA steps as source, or also show us your original data in DATA steps, as I did.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 19:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984070#M379650</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-02-25T19:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Merge duplicating values for what should be null responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984071#M379651</link>
      <description>&lt;P&gt;PS when I run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export
  data=want
  file="~/want.xlsx"
  dbms=xlsx
  replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and open the file in Excel after downloading, it looks &lt;STRONG&gt;EXACTLY&lt;/STRONG&gt; like the PROC PRINT result.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 19:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984071#M379651</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-02-25T19:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Merge duplicating values for what should be null responses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984073#M379653</link>
      <description>&lt;P&gt;I wasn't clear because I didn't realize the issue was in the export step when I posted the question. I thought it was in the merge step. Since it's an issue with a different step, I've created a new thread for it:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Proc-Export-duplicating-values-for-what-should-be-null-responses/m-p/984072#M379652" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Proc-Export-duplicating-values-for-what-should-be-null-responses/m-p/984072#M379652&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the confusion.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 19:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-duplicating-values-for-what-should-be-null-responses/m-p/984073#M379653</guid>
      <dc:creator>ligbag4</dc:creator>
      <dc:date>2026-02-25T19:47:31Z</dc:date>
    </item>
  </channel>
</rss>

