<?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: Convert BIGINT data type to Character data type in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/459847#M284456</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41922"&gt;@PhatRam33&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;What's the error? Which SAS version are you using? Which library engine are you using?&lt;/P&gt;
&lt;P&gt;Could it be related to:&amp;nbsp;&lt;A href="http://support.sas.com/kb/38/707.html" target="_blank"&gt;http://support.sas.com/kb/38/707.html&lt;/A&gt; ?&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 20:54:49 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2018-05-03T20:54:49Z</dc:date>
    <item>
      <title>Convert BIGINT data type to Character data type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/457529#M284453</link>
      <description>&lt;P&gt;Hello, I'm trying to convert a variable that is stored as a BIGINT from a Neteeza database to a character data type and have not had much luck in doing so.&amp;nbsp; I'm trying to convert this data type in a join without using a pass-through query and was wondering if this is possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table1 as t1 Inner Join Table2 as t2 on t1.ID = put(t2.ID,20.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have to convert to a character with a length of 20.&amp;nbsp; Received errors with this piece of code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 21:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/457529#M284453</guid>
      <dc:creator>PhatRam33</dc:creator>
      <dc:date>2018-04-25T21:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert BIGINT data type to Character data type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/457558#M284454</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41922"&gt;@PhatRam33&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Please post the relevant section from your log or at least the full error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you say pass-through: Implicit or explicit?&lt;/P&gt;
&lt;P&gt;If explicit then you need to use Netezza functions - to_char()&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ibm.com/support/knowledgecenter/en/SSULQD_7.2.1/com.ibm.nz.dbu.doc/r_dbuser_ntz_sql_extns_conversion_funcs.html" target="_blank"&gt;https://www.ibm.com/support/knowledgecenter/en/SSULQD_7.2.1/com.ibm.nz.dbu.doc/r_dbuser_ntz_sql_extns_conversion_funcs.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If implicit then be aware that the SAS put() function gets eventually not pushed to the data base meaning that SAS will pull all the data first into SAS before applying the join condition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to docu SAS can deal with Bigint and the put() function as such should work. So please show us some log so we can better understand what's going wrong.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p07ge3f7fvfh5ln1msgdpqhbeh31.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&amp;nbsp;" target="_blank"&gt;http://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p07ge3f7fvfh5ln1msgdpqhbeh31.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 22:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/457558#M284454</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-04-25T22:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Convert BIGINT data type to Character data type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/459710#M284455</link>
      <description>&lt;P&gt;It is an implicit query.&amp;nbsp; Tried&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;dbsastype=(IM.Field1=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'char(20)'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Still receiving same error.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 15:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/459710#M284455</guid>
      <dc:creator>PhatRam33</dc:creator>
      <dc:date>2018-05-03T15:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert BIGINT data type to Character data type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/459847#M284456</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41922"&gt;@PhatRam33&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;What's the error? Which SAS version are you using? Which library engine are you using?&lt;/P&gt;
&lt;P&gt;Could it be related to:&amp;nbsp;&lt;A href="http://support.sas.com/kb/38/707.html" target="_blank"&gt;http://support.sas.com/kb/38/707.html&lt;/A&gt; ?&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 20:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/459847#M284456</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-05-03T20:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert BIGINT data type to Character data type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/460059#M284457</link>
      <description>&lt;P&gt;It is the numeric value out of range error.&amp;nbsp; SAS EG 6.1 on UNIX. I think I may just stick with an explicit query as it works there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 14:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-BIGINT-data-type-to-Character-data-type/m-p/460059#M284457</guid>
      <dc:creator>PhatRam33</dc:creator>
      <dc:date>2018-05-04T14:43:34Z</dc:date>
    </item>
  </channel>
</rss>

