<?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 Data Values Not Fully Loaded in Import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397641#M96119</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a Proc Import statetment to import a CSV file. The Data has 20 variables 2 of the variables are Currencies. All the variables are fully imported, however the only the first column of currencies is imported fully. The second column containing currencies only imports the first digit not the enitre value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currency1 &amp;nbsp; &amp;nbsp;Currency2&lt;/P&gt;&lt;P&gt;$1000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;$40 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;$500 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;$56 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should Read:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currency1 &amp;nbsp; &amp;nbsp;Currency2&lt;/P&gt;&lt;P&gt;$1000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $30&lt;/P&gt;&lt;P&gt;$40 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $200&lt;/P&gt;&lt;P&gt;$500 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $15&lt;/P&gt;&lt;P&gt;$56 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $8750&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are those values being truncated for any reason? Any reccomanation how to import the data fully?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 22:50:39 GMT</pubDate>
    <dc:creator>Me_Caboo</dc:creator>
    <dc:date>2017-09-20T22:50:39Z</dc:date>
    <item>
      <title>Data Values Not Fully Loaded in Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397641#M96119</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a Proc Import statetment to import a CSV file. The Data has 20 variables 2 of the variables are Currencies. All the variables are fully imported, however the only the first column of currencies is imported fully. The second column containing currencies only imports the first digit not the enitre value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currency1 &amp;nbsp; &amp;nbsp;Currency2&lt;/P&gt;&lt;P&gt;$1000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;$40 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;$500 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;$56 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should Read:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currency1 &amp;nbsp; &amp;nbsp;Currency2&lt;/P&gt;&lt;P&gt;$1000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $30&lt;/P&gt;&lt;P&gt;$40 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $200&lt;/P&gt;&lt;P&gt;$500 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $15&lt;/P&gt;&lt;P&gt;$56 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $8750&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are those values being truncated for any reason? Any reccomanation how to import the data fully?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 22:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397641#M96119</guid>
      <dc:creator>Me_Caboo</dc:creator>
      <dc:date>2017-09-20T22:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Values Not Fully Loaded in Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397642#M96120</link>
      <description>&lt;P&gt;How did you run the import? What does the data actually look like (the raw CSV file lines and not what it looks like after being opened by Excel). &amp;nbsp;What end-of-line characters are in your file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not just read the file directly, especially if it only has two columns, instead of using proc import?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 23:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397642#M96120</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-20T23:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data Values Not Fully Loaded in Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397664#M96128</link>
      <description>&lt;PRE class="code"&gt;proc import datafile="C:\sample.csv"
     out=sample
     dbms=csv
     replace;
     guessingrows=10;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original file is a .dat file converted into a .csv file. Could there be an issue during the file conversion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA sample;
   INFILE 'c:\sample.dat';
   INPUT Var1 $ 1-20 Var2 $ 21-24 Var3 $ 25-28
         Var4 $ 29-31 Var5 $ 32-34 Var6 35-37 Var7 38-40;
RUN;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Sep 2017 01:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397664#M96128</guid>
      <dc:creator>Me_Caboo</dc:creator>
      <dc:date>2017-09-21T01:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Values Not Fully Loaded in Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397667#M96129</link>
      <description>&lt;P&gt;I assume the truncation is because of this statement in the PROC IMPORT code.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;     guessingrows=10;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use a larger value for the guessingrows option so that PROC IMPORT uses more information before it guesses what format to use for your variables.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 01:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397667#M96129</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-21T01:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Values Not Fully Loaded in Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397679#M96135</link>
      <description>&lt;P&gt;When you did the conversion from DAT to CSV did you add a delimiter and quote the values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you do the conversion?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32809"&gt;@Me_Caboo&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE class="code"&gt;proc import datafile="C:\sample.csv"
     out=sample
     dbms=csv
     replace;
     guessingrows=10;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original file is a .dat file converted into a .csv file. Could there be an issue during the file conversion?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA sample;
   INFILE 'c:\sample.dat';
   INPUT Var1 $ 1-20 Var2 $ 21-24 Var3 $ 25-28
         Var4 $ 29-31 Var5 $ 32-34 Var6 35-37 Var7 38-40;
RUN;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 03:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397679#M96135</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-21T03:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data Values Not Fully Loaded in Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397785#M96158</link>
      <description>&lt;P&gt;Proc Import when reading CSV will create datastep code showing how the set was actuall read.&lt;/P&gt;
&lt;P&gt;It always pays to look a that, if not copy from the editor and modify it to read the data as expected.&lt;/P&gt;
&lt;P&gt;The generated code will have an Informat and Format statement for each variable. If you look at the code you may find that the informat for currency2 was something like $1. which would occur if the first 10 rows of data for that variable were blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have that generated code modify it to use the same informat and format as currency1 used.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 14:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397785#M96158</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-21T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data Values Not Fully Loaded in Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397971#M96220</link>
      <description>&lt;P&gt;Thank You! My problems sloved.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 01:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/397971#M96220</guid>
      <dc:creator>Me_Caboo</dc:creator>
      <dc:date>2017-09-22T01:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Values Not Fully Loaded in Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/398048#M96240</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32809"&gt;@Me_Caboo&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;What has been the solution? Please share!&lt;/P&gt;
&lt;P&gt;And if one of&amp;nbsp;the answers has been the solution for you then please mark this answer as solution.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 11:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/398048#M96240</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-09-22T11:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data Values Not Fully Loaded in Import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/398066#M96245</link>
      <description>&lt;P&gt;Increase guessingrows to 1000 (guessingrows= 1000)....&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://communities.sas.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 12:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-Values-Not-Fully-Loaded-in-Import/m-p/398066#M96245</guid>
      <dc:creator>Me_Caboo</dc:creator>
      <dc:date>2017-09-22T12:05:30Z</dc:date>
    </item>
  </channel>
</rss>

