<?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: Import data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/684000#M207223</link>
    <description>&lt;DIV class="sas-author-username"&gt;Ballardw:&lt;/DIV&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 21:40:17 GMT</pubDate>
    <dc:creator>benlee</dc:creator>
    <dc:date>2020-09-15T21:40:17Z</dc:date>
    <item>
      <title>Import data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/683986#M207215</link>
      <description />
      <pubDate>Tue, 15 Sep 2020 21:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/683986#M207215</guid>
      <dc:creator>benlee</dc:creator>
      <dc:date>2020-09-15T21:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from Single Family Loan-Level Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/683994#M207220</link>
      <description>&lt;P&gt;Both of those INFILE statements are pointing to the same file but the Input statements are different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest that your "missing" data is coming from reading the wrong file and getting variable type mismatches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What did your LOG look like for the origfileQ12018 datastep? I bet it has a lot of "invalid data" messages.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 16:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/683994#M207220</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-15T16:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Import data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/684000#M207223</link>
      <description>&lt;DIV class="sas-author-username"&gt;Ballardw:&lt;/DIV&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 21:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/684000#M207223</guid>
      <dc:creator>benlee</dc:creator>
      <dc:date>2020-09-15T21:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from Single Family Loan-Level Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/684026#M207235</link>
      <description>&lt;P&gt;If the input for both output datasets is the same file,&lt;/P&gt;
&lt;P&gt;you can create both outputs within the same data step&lt;/P&gt;
&lt;P&gt;but assigning different KEEP variables for each of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code should like to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data origfileQ12018 (keep= &amp;lt;list of variables to keep here&amp;gt;)
       svcgfileQ12018 (keep= &amp;lt;list of variables to keep here&amp;gt;);
length &amp;lt;define max length of character variables&amp;gt; ;
infile "C:\Real_estate\sample_2018.txt" dlm= '|' 
            MISSOVER DSD lrecl=32767 firstobs=1 ;
input 
/***
    enter ALL input variables with their var-type ('$' or none )
    in the right order without informat length
***/
;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Sep 2020 18:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/684026#M207235</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-09-15T18:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from Single Family Loan-Level Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/684055#M207252</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/347297"&gt;@benlee&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV class="sas-author-username"&gt;Ballardw:&lt;/DIV&gt;
&lt;P&gt;Thanks for your response.&lt;/P&gt;
&lt;P&gt;The LOG keeps saying the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: Invalid data for fico in line 20 1-12.&lt;BR /&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I modify the code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Error related posts should include the entire data step code plus all the errors.&lt;/P&gt;
&lt;P&gt;Did you pay any attention to the fact that your shown code is attempting to read the &lt;STRONG&gt;same file with different input statements&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;Input statements when they are just lists of variables as yours are read columns in order.&lt;/P&gt;
&lt;P&gt;So&lt;/P&gt;
&lt;PRE&gt;nfile "C:\Real_estate\sample_2018.txt" dlm= '|' MISSOVER DSD lrecl=32767 firstobs=1 ;
input
fico : 8.&lt;/PRE&gt;
&lt;P&gt;attempts to read the first column in the data set as a number (the 8. informat).&lt;/P&gt;
&lt;P&gt;The values are :&lt;/P&gt;
&lt;PRE&gt;F118Q3000001|201809|150000|0|0|360|||||4.75|0||||||||||||||||&lt;/PRE&gt;
&lt;P&gt;So you are attempting to read F118A3000001 as a number.&lt;/P&gt;
&lt;P&gt;Not going to happen.&lt;/P&gt;
&lt;P&gt;If the website gave you that code then it is intended to read a &lt;STRONG&gt;different&lt;/STRONG&gt; file layout. One where the first value is actually numeric.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 20:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-data/m-p/684055#M207252</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-15T20:03:10Z</dc:date>
    </item>
  </channel>
</rss>

