<?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: &amp;quot;ERROR: Variable Patient_ID has been defined as both character and numeric.&amp;quot; while mer in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907233#M40580</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/460528"&gt;@Nilesh1603&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I have started SAS base course and this is the Chapter exercise&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The 2nd data step as posted can't work. Are you sure you copy/pasted this code from training material 1:1?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this official SAS training? And if so: Which one?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;Sorry, forgot where people get support for SAS training questions.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 05:38:57 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2023-12-11T05:38:57Z</dc:date>
    <item>
      <title>"ERROR: Variable Patient_ID has been defined as both character and numeric." while merging dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907227#M40577</link>
      <description>&lt;P&gt;I have a Data set as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Data Project2.Patient_Demographics;&lt;BR /&gt;Input Patient_ID $1-6&lt;BR /&gt;Age 7-9&lt;BR /&gt;Gender $11&lt;BR /&gt;Race $ 12-17&lt;BR /&gt;Ethnicity $ 18-30;&lt;BR /&gt;Datalines;&lt;BR /&gt;00001 54 M White Non-Hispanic&lt;BR /&gt;00002 42 F Black Hispanic&lt;BR /&gt;00003 67 M Asian Non-Hispanic&lt;BR /&gt;00004 35 F White Hispanic&lt;BR /&gt;00005 72 F Other Non-Hispanic&lt;BR /&gt;00006 28 M White Non-Hispanic&lt;BR /&gt;00007 56 F Black Non-Hispanic&lt;BR /&gt;00008 41 M Asian Hispanic&lt;BR /&gt;00009 63 F Other Hispanic&lt;BR /&gt;00010 39 M White Non-Hispanic&lt;BR /&gt;00011 45 F Black Non-Hispanic&lt;BR /&gt;00012 58 M Asian Non-Hispanic&lt;BR /&gt;00013 29 F White Non-Hispanic&lt;BR /&gt;00014 64 F Other Non-Hispanic&lt;BR /&gt;00015 32 M White Non-Hispanic&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;Data Project2.treatment_details;&lt;BR /&gt;input patient_id 1-5&lt;BR /&gt;treatment_type &amp;amp; :$20.&lt;BR /&gt;start_date :mmddyy10.&lt;BR /&gt;end_date :mmddyy10.&lt;BR /&gt;response &amp;amp; :$20.;&lt;BR /&gt;datalines;&lt;BR /&gt;00001 Chemotherapy 01/01/2023 03/31/2023 Partial Response&lt;BR /&gt;00002 Immunotherapy 02/15/2023 05/15/2023 Complete Response&lt;BR /&gt;00003 Targeted Therapy 03/01/2023 06/30/2023 Stable Disease&lt;BR /&gt;00004 Chemotherapy 04/10/2023 07/10/2023 Progressive Disease&lt;BR /&gt;00005 Immunotherapy 05/20/2023 08/20/2023 Partial Response&lt;BR /&gt;00006 Chemotherapy 06/01/2023 09/30/2023 Complete Response&lt;BR /&gt;00007 Targeted Therapy 07/15/2023 10/15/2023 Stable Disease&lt;BR /&gt;00008 Chemotherapy 08/10/2023 11/10/2023 Progressive Disease&lt;BR /&gt;00009 Immunotherapy 09/20/2023 12/20/2023 Partial Response&lt;BR /&gt;00010 Targeted Therapy 10/01/2023 01/31/2024 Complete Response&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query: But when I am trying to merge the data by below query, OI am getting below error.&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;ERROR: Variable Patient_ID has been defined as both character and numeric."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data merged_data;&lt;BR /&gt;merge patient_demographics treatment_details;&lt;BR /&gt;by patient_id;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with this.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 05:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907227#M40577</guid>
      <dc:creator>Nilesh1603</dc:creator>
      <dc:date>2023-12-11T05:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: Variable Patient_ID has been defined as both character and numeric." while mer</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907228#M40578</link>
      <description>&lt;P&gt;Your 2nd data step as posted executes with errors. Is this just creating sample data or what you're really doing?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 05:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907228#M40578</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-12-11T05:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: Variable Patient_ID has been defined as both character and numeric." while mer</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907231#M40579</link>
      <description>I have started SAS base course and this is the Chapter exercise</description>
      <pubDate>Mon, 11 Dec 2023 05:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907231#M40579</guid>
      <dc:creator>Nilesh1603</dc:creator>
      <dc:date>2023-12-11T05:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: Variable Patient_ID has been defined as both character and numeric." while mer</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907233#M40580</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/460528"&gt;@Nilesh1603&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I have started SAS base course and this is the Chapter exercise&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The 2nd data step as posted can't work. Are you sure you copy/pasted this code from training material 1:1?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this official SAS training? And if so: Which one?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;Sorry, forgot where people get support for SAS training questions.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 05:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907233#M40580</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-12-11T05:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: Variable Patient_ID has been defined as both character and numeric." while mer</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907287#M40582</link>
      <description>&lt;P&gt;Whenever you need to post code, copy/paste it from the source into a window opened with the "little running man" button. The main posting window will reformat the text, e.g. by reducing multiple blanks to one.&lt;/P&gt;
&lt;P&gt;The &amp;amp; modifier in the INPUT statement needs two consef'cutive blanks as delimiter to work.&lt;/P&gt;
&lt;P&gt;Your second DATA step reads patient_id as numeric. Maybe fixing that mistake is part of the exercise.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 08:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907287#M40582</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-12-11T08:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: Variable Patient_ID has been defined as both character and numeric." while mer</title>
      <link>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907363#M40586</link>
      <description>Hi: &lt;BR /&gt;If the student is reporting a problem with one of our SAS Education e-learning classes, then they can report the problem to elearn@sas.com and the instructors on duty will investigate and help.&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 11 Dec 2023 17:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/quot-ERROR-Variable-Patient-ID-has-been-defined-as-both/m-p/907363#M40586</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-12-11T17:27:21Z</dc:date>
    </item>
  </channel>
</rss>

