<?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: Separate alphanumeric and numeric values in a single variable in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Separate-alphanumeric-and-numeric-values-in-a-single-variable/m-p/448190#M13822</link>
    <description>&lt;P&gt;Brilliant! Works Perfectly! Thank you TomKari!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 15:21:26 GMT</pubDate>
    <dc:creator>pmpradhan</dc:creator>
    <dc:date>2018-03-23T15:21:26Z</dc:date>
    <item>
      <title>Separate alphanumeric and numeric values in a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Separate-alphanumeric-and-numeric-values-in-a-single-variable/m-p/448175#M13819</link>
      <description>&lt;P&gt;I have a dataset with following variables:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Patient_ID&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Class&amp;nbsp; &amp;nbsp; &amp;nbsp; Gender&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;015786&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Male&lt;/P&gt;&lt;P&gt;012345&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Female&lt;/P&gt;&lt;P&gt;0T7896&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Female&lt;/P&gt;&lt;P&gt;45J056&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Male&lt;/P&gt;&lt;P&gt;7895P7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 05&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Female&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to output a dataset based on alphanumeric values in variable&amp;nbsp;Patient_ID as one dataset and all numeric variables in Patients_ID as another dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Separate-alphanumeric-and-numeric-values-in-a-single-variable/m-p/448175#M13819</guid>
      <dc:creator>pmpradhan</dc:creator>
      <dc:date>2018-03-23T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Separate alphanumeric and numeric values in a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Separate-alphanumeric-and-numeric-values-in-a-single-variable/m-p/448179#M13820</link>
      <description>&lt;P&gt;Use notdigit(strip(patient_id)) to determine where to write a specific observation.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Separate-alphanumeric-and-numeric-values-in-a-single-variable/m-p/448179#M13820</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-23T14:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Separate alphanumeric and numeric values in a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Separate-alphanumeric-and-numeric-values-in-a-single-variable/m-p/448180#M13821</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Numeric Alpha;
	set have;

	if findc(Patient_ID, "", "dks") &amp;gt; 0 then
		output Alpha;
	else output Numeric;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:03:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Separate-alphanumeric-and-numeric-values-in-a-single-variable/m-p/448180#M13821</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-03-23T15:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Separate alphanumeric and numeric values in a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Separate-alphanumeric-and-numeric-values-in-a-single-variable/m-p/448190#M13822</link>
      <description>&lt;P&gt;Brilliant! Works Perfectly! Thank you TomKari!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Separate-alphanumeric-and-numeric-values-in-a-single-variable/m-p/448190#M13822</guid>
      <dc:creator>pmpradhan</dc:creator>
      <dc:date>2018-03-23T15:21:26Z</dc:date>
    </item>
  </channel>
</rss>

