<?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: Why can't I merge on Key variable after PROC TRANSPOSE ? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104742#M29263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you start getting into more obscure reasons.&amp;nbsp; For example, perhaps another data set contains a variable named B that overwrites the in=b value.&amp;nbsp; It seems like a match is there when there really is no match.&amp;nbsp; But that's pretty farfetched in real life.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, you are talking about an impossible result.&amp;nbsp; There could be other obscure situations.&amp;nbsp; For example, the actual matches could contain missing values in the additional data sets.&amp;nbsp; But they could contain other nonmissing values that look like that should match but actually don't because application_id is not left-justified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a single application_id where you think there should be a match.&amp;nbsp; Print the observations from each data set separately for that application_id.&amp;nbsp; Let us know what you find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Dec 2012 00:13:08 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2012-12-20T00:13:08Z</dc:date>
    <item>
      <title>Why can't I merge on Key variable after PROC TRANSPOSE ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104738#M29259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have a dataset that I put through a PROC TRANSPOSE.&amp;nbsp; Now I want to expand data and make a report, by merging in extra fields, using the new output from the PROC TRANSPOSE as the base dataset, and secondary datasets to pull extra fields, matching on account ID field.&amp;nbsp; I see all the matching account IDs in the secondary tables, but when merge completes, the fields from the secondary tables show "." for missing numeric and " " for missing character values.&amp;nbsp; None of the fields populated in the merged dataset, from the second, third, fourth, fifth or sixth table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bbwhse.test_appeals2 ;&amp;nbsp; &lt;SPAN style="color: #339966;"&gt;&lt;STRONG&gt;/**&amp;nbsp; this is the main dataset, which was output file from PROC TRANSPOSE&amp;nbsp; **/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; application_id ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bbwhse.turn_down_david_fields&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; application_id ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bbwhse.turn_down_acaps_lite_fields ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; application_id ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bbwhse.turn_down_busmast_fields ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; application_id ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bbwhse.turn_down_prinmast_fields ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; application_id ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bbwhse.tdhist_new_judgmental_declines &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bbwhse.td_reasons &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;nodup&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; application_id seq_file_key ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bbwhse.td_reasons (drop=seq_file_key state area hist_rec) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;nodupkey&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; application_id&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; bbwhse.appeals_processing_code_report ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;merge&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; bbwhse.test_appeals2 (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=a) bbwhse.turn_down_david_fields (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=b) bbwhse.turn_down_acaps_lite_fields (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=c) bbwhse.turn_down_busmast_fields (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=d) bbwhse.turn_down_prinmast_fields (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=e) bbwhse.td_reasons (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=f) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; application_id ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; a and b and c and d and e and f ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 19:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104738#M29259</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2012-12-19T19:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I merge on Key variable after PROC TRANSPOSE ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104739#M29260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chandler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that the fields from the second data set are ALWAYS missing, and not just sometimes missing, you only have two possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The fields are actually missing in the second data set before you merge them in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The same fields appear in one of the later data sets, but are missing in that later data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No other possibilities that I can imagine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 19:49:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104739#M29260</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-12-19T19:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I merge on Key variable after PROC TRANSPOSE ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104740#M29261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Astounding.&amp;nbsp;&amp;nbsp; I check the other tables, and values are there.&amp;nbsp; There are no duplicate fields across tables.&amp;nbsp; They are not missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 22:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104740#M29261</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2012-12-19T22:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I merge on Key variable after PROC TRANSPOSE ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104741#M29262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get rid of the IF statement and you can probably figure where you have the mismatch in the values of your BY variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 00:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104741#M29262</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-12-20T00:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I merge on Key variable after PROC TRANSPOSE ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104742#M29263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you start getting into more obscure reasons.&amp;nbsp; For example, perhaps another data set contains a variable named B that overwrites the in=b value.&amp;nbsp; It seems like a match is there when there really is no match.&amp;nbsp; But that's pretty farfetched in real life.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, you are talking about an impossible result.&amp;nbsp; There could be other obscure situations.&amp;nbsp; For example, the actual matches could contain missing values in the additional data sets.&amp;nbsp; But they could contain other nonmissing values that look like that should match but actually don't because application_id is not left-justified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a single application_id where you think there should be a match.&amp;nbsp; Print the observations from each data set separately for that application_id.&amp;nbsp; Let us know what you find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 00:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104742#M29263</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-12-20T00:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I merge on Key variable after PROC TRANSPOSE ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104743#M29264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, consider adding some PUTLOG statements in the DATA step to echo back to your SAS log the contributing variable / value combinations.&amp;nbsp; Also, consider seriously the MERGE behavior and how the files defined on the MERGE statement influence the SAS system behavior, when (already mentioned in a subsequent reply) with same-named SAS variable names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will be best served by doing some desk-checking (adding the PUTLOG statements) and running a sample controlled-test with a limited data subset.&amp;nbsp; Or better yet, use a DATA step to generate some sample data observations with known-values and use that to exercise your SAS program/code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott Barry&lt;/P&gt;&lt;P&gt;SBBWorks, Inc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 02:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-can-t-I-merge-on-Key-variable-after-PROC-TRANSPOSE/m-p/104743#M29264</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2012-12-20T02:32:48Z</dc:date>
    </item>
  </channel>
</rss>

