<?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 PROC IMPORT/EXPORT - Import long-digit number as character variable. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-EXPORT-Import-long-digit-number-as-character/m-p/514979#M138917</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying to write a code with Proc Import to import a *.txt file, in which there is a variable containing "card numbers" (field name: &lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;[T:L:100]CARD_NO) with 16 digits. However, after importing, the values showed in the variable are numeric as "4.69672E15". Please help to instructing me to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT OUT= WORK.PORTFOLIO_TODAY
DATAFILE="&amp;amp;rprt_cust_info.CC Customer Info &amp;amp;RPRT_TODAY..TXT"
DBMS=DLM REPLACE;
GETNAMES=YES;
GUESSINGROWS=10000;
DELIMITER="09"X;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;1/ Keep the format of the variable as "character" when importing instead of changing the format with "data steps" after the importing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;or&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;2/ Import all the variable as "character" format.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;Thank you so much.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 03:41:05 GMT</pubDate>
    <dc:creator>Tri_Luong</dc:creator>
    <dc:date>2018-11-21T03:41:05Z</dc:date>
    <item>
      <title>PROC IMPORT/EXPORT - Import long-digit number as character variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-EXPORT-Import-long-digit-number-as-character/m-p/514979#M138917</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying to write a code with Proc Import to import a *.txt file, in which there is a variable containing "card numbers" (field name: &lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;[T:L:100]CARD_NO) with 16 digits. However, after importing, the values showed in the variable are numeric as "4.69672E15". Please help to instructing me to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT OUT= WORK.PORTFOLIO_TODAY
DATAFILE="&amp;amp;rprt_cust_info.CC Customer Info &amp;amp;RPRT_TODAY..TXT"
DBMS=DLM REPLACE;
GETNAMES=YES;
GUESSINGROWS=10000;
DELIMITER="09"X;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;1/ Keep the format of the variable as "character" when importing instead of changing the format with "data steps" after the importing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;or&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;2/ Import all the variable as "character" format.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Gulim',sans-serif;"&gt;Thank you so much.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 03:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-EXPORT-Import-long-digit-number-as-character/m-p/514979#M138917</guid>
      <dc:creator>Tri_Luong</dc:creator>
      <dc:date>2018-11-21T03:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT/EXPORT - Import long-digit number as character variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-EXPORT-Import-long-digit-number-as-character/m-p/514981#M138918</link>
      <description>Use a data step instead. Proc import doesn’t give you control of the variables length or type. &lt;BR /&gt;You can find the starter code in your log after running import and use that, modified to account for the character variable of course.</description>
      <pubDate>Wed, 21 Nov 2018 03:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-EXPORT-Import-long-digit-number-as-character/m-p/514981#M138918</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-21T03:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT/EXPORT - Import long-digit number as character variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-EXPORT-Import-long-digit-number-as-character/m-p/514988#M138919</link>
      <description>&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; already explained how to solve the problem, i'd like to add one thing: switch of caps-lock when writing code. All those uppercase chars reduce readability.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 05:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-EXPORT-Import-long-digit-number-as-character/m-p/514988#M138919</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-11-21T05:19:46Z</dc:date>
    </item>
  </channel>
</rss>

