<?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 data merge in data step / source indicator variables not created in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-merge-in-data-step-source-indicator-variables-not-created/m-p/645315#M192889</link>
    <description>&lt;P&gt;Hi folks;&lt;/P&gt;
&lt;P&gt;I'd like to analyze mis-matched rows in the resulting data set, thus, creating indicator variables such as ref, ar, car ...et.c. My code runs fine.&amp;nbsp; But these indicator variables:&amp;nbsp;ref, ar, car ...et.c &amp;nbsp;are not found in the resulting dataset temp_alldate_id except 'ho'. What's going wrong here?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp_alldata_id; /*325*/ 
length id1name idname $20;
merge 
m.reference_columns       (in=ref)
Apt_rent_id               (in=ar)          
Car_per_pp_id             (in=car)
Hh_type_id                (in=hh)
N_manufact_id             (in=m)
N_service_comp_id         (in=serv)
N_students_per_class_id   (in=st)
N_welfare_facility_id     (in=w)
Ratio_health_welfare_id   (in=hw)
Urbanicity_id             (in=u)
Workers_per_pp_id         (in=wo)
Disability_id             (in=d)
Gdp_id                    (in=g)
Insured_pop_id            (in=i)
N_employees_id            (in=e)
Retail_workers_id         (in=r)
Vac_rate_id               (in=v); 
by id1name idname; 
ref=ref; ar=ar; car=car; hh=hh; ho=ho; m=m; serv=serv; st=st;
w=w; hw=hw; u=u; wo=wo; d=d; g=g; i=i; e=e; r=r; v=v; 
run;&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 14:45:31 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2020-05-05T14:45:31Z</dc:date>
    <item>
      <title>data merge in data step / source indicator variables not created</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-merge-in-data-step-source-indicator-variables-not-created/m-p/645315#M192889</link>
      <description>&lt;P&gt;Hi folks;&lt;/P&gt;
&lt;P&gt;I'd like to analyze mis-matched rows in the resulting data set, thus, creating indicator variables such as ref, ar, car ...et.c. My code runs fine.&amp;nbsp; But these indicator variables:&amp;nbsp;ref, ar, car ...et.c &amp;nbsp;are not found in the resulting dataset temp_alldate_id except 'ho'. What's going wrong here?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp_alldata_id; /*325*/ 
length id1name idname $20;
merge 
m.reference_columns       (in=ref)
Apt_rent_id               (in=ar)          
Car_per_pp_id             (in=car)
Hh_type_id                (in=hh)
N_manufact_id             (in=m)
N_service_comp_id         (in=serv)
N_students_per_class_id   (in=st)
N_welfare_facility_id     (in=w)
Ratio_health_welfare_id   (in=hw)
Urbanicity_id             (in=u)
Workers_per_pp_id         (in=wo)
Disability_id             (in=d)
Gdp_id                    (in=g)
Insured_pop_id            (in=i)
N_employees_id            (in=e)
Retail_workers_id         (in=r)
Vac_rate_id               (in=v); 
by id1name idname; 
ref=ref; ar=ar; car=car; hh=hh; ho=ho; m=m; serv=serv; st=st;
w=w; hw=hw; u=u; wo=wo; d=d; g=g; i=i; e=e; r=r; v=v; 
run;&lt;/CODE&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 14:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-merge-in-data-step-source-indicator-variables-not-created/m-p/645315#M192889</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2020-05-05T14:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: data merge in data step / source indicator variables not created</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-merge-in-data-step-source-indicator-variables-not-created/m-p/645319#M192892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is due to the fact that you put the same names :&amp;nbsp;ref=ref; etc.&lt;/P&gt;
&lt;P&gt;The variable to be created needs to be different : e.g. ref1 = ref.&lt;/P&gt;
&lt;P&gt;best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 14:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-merge-in-data-step-source-indicator-variables-not-created/m-p/645319#M192892</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-05T14:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: data merge in data step / source indicator variables not created</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-merge-in-data-step-source-indicator-variables-not-created/m-p/645329#M192895</link>
      <description>&lt;P&gt;By using a variable in the IN= option, you declare it as temporary; you can't even force it to be output with a KEEP statement.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 15:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-merge-in-data-step-source-indicator-variables-not-created/m-p/645329#M192895</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-05T15:12:32Z</dc:date>
    </item>
  </channel>
</rss>

