<?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: Joining numerical and alphanumerical value in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Joining-numerical-and-alphanumerical-value/m-p/101864#M28590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt; CREATE TABLE icoplib.customer_comments&lt;BR /&gt;&amp;nbsp; AS SELECT&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; absentnorkom.NO_CLIENT_RDM_SID,&lt;BR /&gt;&amp;nbsp; CUSTOMER_ACTION_LOG_NUM.COMMENT_TEXT&lt;/P&gt;&lt;P&gt; FROM ICOPLIB.ABSENTNORKOM AS ABSENTNORKOM &lt;BR /&gt;&amp;nbsp;&amp;nbsp; LEFT join icoplib.CUSTOMER_ACTION_LOG_NUM AS CUSTOMER_ACTION_LOG_NUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ON&amp;nbsp; absentnorkom.NO_CLIENT_RDM_SID = input(CUSTOMER_ACTION_LOG.entity_key,20)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 19:46:25 GMT</pubDate>
    <dc:creator>DBailey</dc:creator>
    <dc:date>2013-02-07T19:46:25Z</dc:date>
    <item>
      <title>Joining numerical and alphanumerical value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Joining-numerical-and-alphanumerical-value/m-p/101863#M28589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make a inner join in sql on two variable of different type, where no_client_rdm_sid is numerical and entity_key is alphanumerical &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt; CREATE TABLE icoplib.customer_comments&lt;BR /&gt;&amp;nbsp; AS SELECT&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; absentnorkom.NO_CLIENT_RDM_SID,&lt;BR /&gt;&amp;nbsp; CUSTOMER_ACTION_LOG_NUM.COMMENT_TEXT&lt;/P&gt;&lt;P&gt; FROM ICOPLIB.ABSENTNORKOM AS ABSENTNORKOM &lt;BR /&gt;&amp;nbsp;&amp;nbsp; LEFT join icoplib.CUSTOMER_ACTION_LOG_NUM AS CUSTOMER_ACTION_LOG_NUM ON ( absentnorkom.NO_CLIENT_RDM_SID = CUSTOMER_ACTION_LOG.entity_key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to transform the variable within the sql query or do I really need to use an input statement like the following? :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data icoplib.customer_action_log_num;&lt;/P&gt;&lt;P&gt;set nksmprd.customer_action_log;&lt;/P&gt;&lt;P&gt;entity_key_num = input(entity_key, 20.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I need to use this input statement, how do I make sure that it only transform numerical value (i,e limit the input to numerical value only), since my entity_key records also contains alphanumerical value and I don't want to trigger an error each time it analyze an alphanumerical value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help and time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 19:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Joining-numerical-and-alphanumerical-value/m-p/101863#M28589</guid>
      <dc:creator>nicnad</dc:creator>
      <dc:date>2013-02-07T19:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Joining numerical and alphanumerical value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Joining-numerical-and-alphanumerical-value/m-p/101864#M28590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt; CREATE TABLE icoplib.customer_comments&lt;BR /&gt;&amp;nbsp; AS SELECT&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; absentnorkom.NO_CLIENT_RDM_SID,&lt;BR /&gt;&amp;nbsp; CUSTOMER_ACTION_LOG_NUM.COMMENT_TEXT&lt;/P&gt;&lt;P&gt; FROM ICOPLIB.ABSENTNORKOM AS ABSENTNORKOM &lt;BR /&gt;&amp;nbsp;&amp;nbsp; LEFT join icoplib.CUSTOMER_ACTION_LOG_NUM AS CUSTOMER_ACTION_LOG_NUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ON&amp;nbsp; absentnorkom.NO_CLIENT_RDM_SID = input(CUSTOMER_ACTION_LOG.entity_key,20)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 19:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Joining-numerical-and-alphanumerical-value/m-p/101864#M28590</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-02-07T19:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Joining numerical and alphanumerical value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Joining-numerical-and-alphanumerical-value/m-p/101865#M28591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, there are only TWO types of variables in SAS table, Number or Char. The one you referred as alphanumeric is Char.&lt;/P&gt;&lt;P&gt;Second, in this case, you better off convert Number to Char instead of the other way around to avoiding those error messages:&lt;/P&gt;&lt;P&gt;ON put(absentnorkom.NO_CLIENT_RDM_SID,best20.) = CUSTOMER_ACTION_LOG.entity_key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you probably need to adjust the format to "best20.x" to accommodate possible decimal point or apply upcase(), left() etc to make sure you get what you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 19:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Joining-numerical-and-alphanumerical-value/m-p/101865#M28591</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-02-07T19:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Joining numerical and alphanumerical value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Joining-numerical-and-alphanumerical-value/m-p/101866#M28592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exactly what I needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 20:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Joining-numerical-and-alphanumerical-value/m-p/101866#M28592</guid>
      <dc:creator>nicnad</dc:creator>
      <dc:date>2013-02-07T20:09:30Z</dc:date>
    </item>
  </channel>
</rss>

