<?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: Importing an Excel File into SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258251#M57341</link>
    <description>&lt;P&gt;You show 2 as the last variable but SAS thinks its 2 53&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the truncover option to your infile statement as well &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a suggestion doesnt work please post the code used and&amp;nbsp;the first portion of the log...it starts to repeat itself.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2016 16:14:20 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-03-22T16:14:20Z</dc:date>
    <item>
      <title>Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258224#M57333</link>
      <description>&lt;P&gt;I am trying to import an excel file. &amp;nbsp;I first saved it as a CSV file on my computer and then input the following code into SAS 9.3:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;TAI;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;infile&lt;/SPAN&gt; 'C:\SAS\TAI.csv' &lt;SPAN class="s2"&gt;dlm&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;=&lt;/SPAN&gt;',' &lt;SPAN class="s2"&gt;firstobs&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;input&lt;/SPAN&gt;&amp;nbsp;strokeid prepost arrdate $ year prepost15 age sex $ race $ ttn nihss sta ptr dtc ctp lastmRSscore;&lt;/P&gt;&lt;P class="p3"&gt;run&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;I received the following errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;NOTE: The infile 'C:\SAS\IAT.csv' is:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Filename=C:\SAS\IAT.csv,&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;RECFM=V,LRECL=256,File Size (bytes)=22665,&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Last Modified=22Mar2016:09:15:55,&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Create Time=22Mar2016:09:16:52&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 2 1-14.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for ctp in line 3 1-13.&lt;/P&gt;&lt;P class="p1"&gt;RULE: &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0&lt;/P&gt;&lt;P class="p1"&gt;3 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13074*SWEDISH,1,3-Jan-12,2012,1,83,M,W,0,6,122,,15,,2 53&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=3-Jan-12 year=2012 prepost15=1 age=60 sex=F race=W ttn=499 nihss=18 sta=116 ptr=46 dtc=2 ctp=.&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=1&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 4 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for ctp in line 5 1-13.&lt;/P&gt;&lt;P class="p1"&gt;5 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13117*SWEDISH,1,13-Jan-12,2012,1,52,M,W,0,17,229,,12,,6 55&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=9-Jan-12 year=2012 prepost15=1 age=65 sex=M race=W ttn=10 nihss=14 sta=219 ptr=15 dtc=3 ctp=.&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=2&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 6 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for ctp in line 7 1-13.&lt;/P&gt;&lt;P class="p1"&gt;7 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13202*SWEDISH,1,7-Feb-12,2012,1,48,F,W,19,16,236,,33,,4 55&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=19-Jan-1 year=2012 prepost15=1 age=72 sex=F race=W ttn=8 nihss=13 sta=317 ptr=16 dtc=5 ctp=.&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=3&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 8 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for ctp in line 9 1-13.&lt;/P&gt;&lt;P class="p1"&gt;9 &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13237*SWEDISH,1,14-Feb-12,2012,1,50,F,o,15,12,247,,21,,2 56&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=7-Feb-12 year=2012 prepost15=1 age=83 sex=F race=W ttn=3 nihss=20 sta=252 ptr=17 dtc=4 ctp=.&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=4&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 10 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for ctp in line 11 1-13.&lt;/P&gt;&lt;P class="p1"&gt;11&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13247*SWEDISH,1,16-Feb-12,2012,1,86,F,o,68,12,4,,78,,3 54&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=15-Feb-1 year=2012 prepost15=1 age=62 sex=M race=W ttn=0 nihss=12 sta=281 ptr=21 dtc=0 ctp=.&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=5&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 12 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for ctp in line 13 1-13.&lt;/P&gt;&lt;P class="p1"&gt;13&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13257*SWEDISH,1,20-Feb-12,2012,1,60,M,W,0,4,221,,15,,2 54&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=19-Feb-1 year=2012 prepost15=1 age=81 sex=M race=W ttn=0 nihss=20 sta=144 ptr=21 dtc=2 ctp=.&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=6&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 14 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for ctp in line 15 1-13.&lt;/P&gt;&lt;P class="p1"&gt;15&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13323*SWEDISH,1,4-Mar-12,2012,1,77,F,W,0,26,299,82,14,49,6 58&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=22-Feb-1 year=2012 prepost15=1 age=63 sex=M race=W ttn=0 nihss=23 sta=389 ptr=16 dtc=6 ctp=.&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=7&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 16 1-13.&lt;/P&gt;&lt;P class="p1"&gt;16&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13351*SWEDISH,1,10-Mar-12,2012,1,77,F,W,2,19,118,82,17,69,4 59&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=10-Mar-1 year=2012 prepost15=1 age=77 sex=F race=W ttn=2 nihss=19 sta=118 ptr=82 dtc=17 ctp=69&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=4 _ERROR_=1 _N_=8&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 17 1-13.&lt;/P&gt;&lt;P class="p1"&gt;17&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13376*SWEDISH,1,14-Mar-12,2012,1,42,F,o,0,27,249,29,1,46,2 58&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=14-Mar-1 year=2012 prepost15=1 age=42 sex=F race=o ttn=0 nihss=27 sta=249 ptr=29 dtc=1 ctp=46&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=2 _ERROR_=1 _N_=9&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 18 1-13.&lt;/P&gt;&lt;P class="p1"&gt;18&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13414*SWEDISH,1,20-Mar-12,2012,1,73,F,W,0,20,1051,49,19,33,2 60&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=20-Mar-1 year=2012 prepost15=1 age=73 sex=F race=W ttn=0 nihss=20 sta=1051 ptr=49 dtc=19 ctp=33&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=2 _ERROR_=1 _N_=10&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 19 1-13.&lt;/P&gt;&lt;P class="p1"&gt;19&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13425*SWEDISH,1,22-Mar-12,2012,1,82,F,W,0,22,185,81,19,43,1 59&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=22-Mar-1 year=2012 prepost15=1 age=82 sex=F race=W ttn=0 nihss=22 sta=185 ptr=81 dtc=19 ctp=43&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=11&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 20 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for ctp in line 21 1-13.&lt;/P&gt;&lt;P class="p1"&gt;21&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13450*SWEDISH,1,28-Mar-12,2012,1,86,F,W,0,18,160,,17,23,3 57&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=26-Mar-1 year=2012 prepost15=1 age=60 sex=M race=W ttn=0 nihss=17 sta=549 ptr=11 dtc=3 ctp=.&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=12&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 22 1-13.&lt;/P&gt;&lt;P class="p1"&gt;22&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13462*SWEDISH,1,28-Mar-12,2012,1,85,F,W,4,19,251,93,22,82,3 59&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=28-Mar-1 year=2012 prepost15=1 age=85 sex=F race=W ttn=4 nihss=19 sta=251 ptr=93 dtc=22 ctp=82&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=3 _ERROR_=1 _N_=13&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 23 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for lastmRS in line 24 1-13.&lt;/P&gt;&lt;P class="p1"&gt;24&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13469*SWEDISH,1,31-Mar-12,2012,1,89,M,o,12,,769,180,43,27,6 59&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=29-Mar-1 year=2012 prepost15=1 age=60 sex=F race=W ttn=0 nihss=13 sta=236 ptr=11 dtc=146 ctp=1&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=. _ERROR_=1 _N_=14&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 25 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for dtc in line 26 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for lastmRS in line 26 17-24.&lt;/P&gt;&lt;P class="p1"&gt;26&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13486*SWEDISH,1,4-Apr-12,2012,1,66,F,W,0,25,162,80,,,4 54&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=2-Apr-12 year=2012 prepost15=1 age=41 sex=M race=W ttn=2 nihss=565 sta=112 ptr=2 dtc=. ctp=1&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=. _ERROR_=1 _N_=15&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 27 1-13.&lt;/P&gt;&lt;P class="p1"&gt;27&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13488*SWEDISH,1,4-Apr-12,2012,1,64,F,W,0,12,152,43,16,54,6 58&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=4-Apr-12 year=2012 prepost15=1 age=64 sex=F race=W ttn=0 nihss=12 sta=152 ptr=43 dtc=16 ctp=54&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=6 _ERROR_=1 _N_=16&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 28 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for ctp in line 29 1-13.&lt;/P&gt;&lt;P class="p1"&gt;29&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13515*SWEDISH,1,11-Apr-12,2012,1,61,M,W,0,7,334,81,13,16,3 58&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=9-Apr-12 year=2012 prepost15=1 age=79 sex=M race=W ttn=4 nihss=22 sta=205 ptr=82 dtc=1 ctp=.&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=1 _ERROR_=1 _N_=17&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 30 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for lastmRS in line 31 1-13.&lt;/P&gt;&lt;P class="p1"&gt;31&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13540*SWEDISH,1,15-Apr-12,2012,1,64,F,o,0,18,32,92,5,162,6 58&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=13-Apr-1 year=2012 prepost15=1 age=54 sex=F race=W ttn=0 nihss=13 sta=262 ptr=14 dtc=81 ctp=3&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=. _ERROR_=1 _N_=18&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 32 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for dtc in line 33 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for lastmRS in line 33 17-25.&lt;/P&gt;&lt;P class="p1"&gt;33&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13555*SWEDISH,1,19-Apr-12,2012,1,50,F,W,0,15,697,129,14,27,2 60&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=17-Apr-1 year=2012 prepost15=1 age=54 sex=F race=W ttn=18 nihss=548 sta=101 ptr=1 dtc=. ctp=1&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=. _ERROR_=1 _N_=19&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for strokeid in line 34 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for dtc in line 35 1-13.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data for lastmRS in line 35 17-25.&lt;/P&gt;&lt;P class="p1"&gt;WARNING: Limit set by ERRORS= option reached.&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;Further errors of this type will not be printed.&lt;/P&gt;&lt;P class="p1"&gt;35&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;13653*SWEDISH,1,14-May-12,2012,1,70,F,o,0,34,157,93,20,6,6 58&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/P&gt;&lt;P class="p1"&gt;strokeid=. prepost=1 arrdate=8-May-12 year=2012 prepost15=1 age=58 sex=F race=W ttn=6 nihss=1060 sta=51 ptr=3 dtc=. ctp=1&lt;/P&gt;&lt;P class="p1"&gt;lastmRS=. _ERROR_=1 _N_=20&lt;/P&gt;&lt;P class="p1"&gt;NOTE: 380 records were read from the infile 'C:\SAS\IAT.csv'.&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;The minimum record length was 48.&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;The maximum record length was 61.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: The data set WORK.IAT has 247 observations and 15 variables.&lt;/P&gt;&lt;P class="p1"&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;real time &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.01 seconds&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;cpu time&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0.01 seconds&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;This continues throughout the data. &amp;nbsp;Does anyone know how to correc this or what this means?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 15:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258224#M57333</guid>
      <dc:creator>stancemcgraw</dc:creator>
      <dc:date>2016-03-22T15:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258229#M57334</link>
      <description>&lt;P&gt;It would be easier if you posted, just the first line or two of the file so we can test it our end. &amp;nbsp;First thing I would do to add:&lt;/P&gt;
&lt;PRE&gt;data tai;
  infile 'C:\SAS\TAI.csv' dlm=',' firstobs=2 lrecl=32767;
  input strokeid prepost arrdate $ year prepost15 age sex $ race $ ttn nihss sta ptr dtc ctp lastmRSscore;
run;&lt;/PRE&gt;
&lt;P&gt;The lrecl is explained here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003160472.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003160472.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 15:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258229#M57334</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-22T15:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258232#M57335</link>
      <description>&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="p1"&gt;strokeid&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;prepost&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;arrdate&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;year&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;prepost15&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;age&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;sex&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;race&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;ttn&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;nihss&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;sta&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;ptr&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;dtc&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;ctp&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;lastmRs&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="p1"&gt;170901*SWEDISH&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;3-Jan-12&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;2012&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;60&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;F&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p1"&gt;W&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;499&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;18&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;116&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;46&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P class="p2"&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 22 Mar 2016 15:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258232#M57335</guid>
      <dc:creator>stancemcgraw</dc:creator>
      <dc:date>2016-03-22T15:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258236#M57336</link>
      <description>Is the # 32767 after lrecl an arbitrary number?</description>
      <pubDate>Tue, 22 Mar 2016 15:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258236#M57336</guid>
      <dc:creator>stancemcgraw</dc:creator>
      <dc:date>2016-03-22T15:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258239#M57337</link>
      <description>&lt;P&gt;It is the maximum value you can have for a row length. &amp;nbsp;Although you shoud never have data getting to that kind of length.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 15:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258239#M57337</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-22T15:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258244#M57338</link>
      <description>7 data IAT;&lt;BR /&gt;8 infile 'C:\SAS\IAT.csv' dlm=',' firstobs=2 lrecl=32767;&lt;BR /&gt;9 input strokeid prepost arrdate $ year prepost15 age sex $ race $ ttn nihss sta ptr dtc ctp lastmRSscore;&lt;BR /&gt;10 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile 'C:\SAS\IAT.csv' is:&lt;BR /&gt;Filename=C:\SAS\IAT.csv,&lt;BR /&gt;RECFM=V,LRECL=32767,File Size (bytes)=22665,&lt;BR /&gt;Last Modified=22Mar2016:09:15:55,&lt;BR /&gt;Create Time=22Mar2016:09:16:52&lt;BR /&gt;&lt;BR /&gt;NOTE: Invalid data for strokeid in line 2 1-14.&lt;BR /&gt;NOTE: Invalid data for ctp in line 3 1-13.&lt;BR /&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0&lt;BR /&gt;3 13074*SWEDISH,1,3-Jan-12,2012,1,83,M,W,0,6,122,,15,,2 53&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=3-Jan-12 year=2012 prepost15=1 age=60 sex=F race=W ttn=499 nihss=18 sta=116 ptr=46 dtc=2 ctp=.&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=1&lt;BR /&gt;NOTE: Invalid data for strokeid in line 4 1-13.&lt;BR /&gt;NOTE: Invalid data for ctp in line 5 1-13.&lt;BR /&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0&lt;BR /&gt;5 13117*SWEDISH,1,13-Jan-12,2012,1,52,M,W,0,17,229,,12,,6 55&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=9-Jan-12 year=2012 prepost15=1 age=65 sex=M race=W ttn=10 nihss=14 sta=219 ptr=15 dtc=3 ctp=.&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=2&lt;BR /&gt;NOTE: Invalid data for strokeid in line 6 1-13.&lt;BR /&gt;NOTE: Invalid data for ctp in line 7 1-13.&lt;BR /&gt;7 13202*SWEDISH,1,7-Feb-12,2012,1,48,F,W,19,16,236,,33,,4 55&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=19-Jan-1 year=2012 prepost15=1 age=72 sex=F race=W ttn=8 nihss=13 sta=317 ptr=16 dtc=5 ctp=.&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=3&lt;BR /&gt;NOTE: Invalid data for strokeid in line 8 1-13.&lt;BR /&gt;NOTE: Invalid data for ctp in line 9 1-13.&lt;BR /&gt;9 13237*SWEDISH,1,14-Feb-12,2012,1,50,F,o,15,12,247,,21,,2 56&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=7-Feb-12 year=2012 prepost15=1 age=83 sex=F race=W ttn=3 nihss=20 sta=252 ptr=17 dtc=4 ctp=.&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=4&lt;BR /&gt;NOTE: Invalid data for strokeid in line 10 1-13.&lt;BR /&gt;NOTE: Invalid data for ctp in line 11 1-13.&lt;BR /&gt;11 13247*SWEDISH,1,16-Feb-12,2012,1,86,F,o,68,12,4,,78,,3 54&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=15-Feb-1 year=2012 prepost15=1 age=62 sex=M race=W ttn=0 nihss=12 sta=281 ptr=21 dtc=0 ctp=.&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=5&lt;BR /&gt;NOTE: Invalid data for strokeid in line 12 1-13.&lt;BR /&gt;NOTE: Invalid data for ctp in line 13 1-13.&lt;BR /&gt;13 13257*SWEDISH,1,20-Feb-12,2012,1,60,M,W,0,4,221,,15,,2 54&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=19-Feb-1 year=2012 prepost15=1 age=81 sex=M race=W ttn=0 nihss=20 sta=144 ptr=21 dtc=2 ctp=.&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=6&lt;BR /&gt;NOTE: Invalid data for strokeid in line 14 1-13.&lt;BR /&gt;NOTE: Invalid data for ctp in line 15 1-13.&lt;BR /&gt;15 13323*SWEDISH,1,4-Mar-12,2012,1,77,F,W,0,26,299,82,14,49,6 58&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=22-Feb-1 year=2012 prepost15=1 age=63 sex=M race=W ttn=0 nihss=23 sta=389 ptr=16 dtc=6 ctp=.&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=7&lt;BR /&gt;NOTE: Invalid data for strokeid in line 16 1-13.&lt;BR /&gt;16 13351*SWEDISH,1,10-Mar-12,2012,1,77,F,W,2,19,118,82,17,69,4 59&lt;BR /&gt;strokeid=. prepost=1 arrdate=10-Mar-1 year=2012 prepost15=1 age=77 sex=F race=W ttn=2 nihss=19 sta=118 ptr=82 dtc=17 ctp=69&lt;BR /&gt;lastmRSscore=4 _ERROR_=1 _N_=8&lt;BR /&gt;NOTE: Invalid data for strokeid in line 17 1-13.&lt;BR /&gt;17 13376*SWEDISH,1,14-Mar-12,2012,1,42,F,o,0,27,249,29,1,46,2 58&lt;BR /&gt;strokeid=. prepost=1 arrdate=14-Mar-1 year=2012 prepost15=1 age=42 sex=F race=o ttn=0 nihss=27 sta=249 ptr=29 dtc=1 ctp=46&lt;BR /&gt;lastmRSscore=2 _ERROR_=1 _N_=9&lt;BR /&gt;NOTE: Invalid data for strokeid in line 18 1-13.&lt;BR /&gt;18 13414*SWEDISH,1,20-Mar-12,2012,1,73,F,W,0,20,1051,49,19,33,2 60&lt;BR /&gt;strokeid=. prepost=1 arrdate=20-Mar-1 year=2012 prepost15=1 age=73 sex=F race=W ttn=0 nihss=20 sta=1051 ptr=49 dtc=19 ctp=33&lt;BR /&gt;lastmRSscore=2 _ERROR_=1 _N_=10&lt;BR /&gt;NOTE: Invalid data for strokeid in line 19 1-13.&lt;BR /&gt;19 13425*SWEDISH,1,22-Mar-12,2012,1,82,F,W,0,22,185,81,19,43,1 59&lt;BR /&gt;strokeid=. prepost=1 arrdate=22-Mar-1 year=2012 prepost15=1 age=82 sex=F race=W ttn=0 nihss=22 sta=185 ptr=81 dtc=19 ctp=43&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=11&lt;BR /&gt;NOTE: Invalid data for strokeid in line 20 1-13.&lt;BR /&gt;NOTE: Invalid data for ctp in line 21 1-13.&lt;BR /&gt;21 13450*SWEDISH,1,28-Mar-12,2012,1,86,F,W,0,18,160,,17,23,3 57&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=26-Mar-1 year=2012 prepost15=1 age=60 sex=M race=W ttn=0 nihss=17 sta=549 ptr=11 dtc=3 ctp=.&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=12&lt;BR /&gt;NOTE: Invalid data for strokeid in line 22 1-13.&lt;BR /&gt;22 13462*SWEDISH,1,28-Mar-12,2012,1,85,F,W,4,19,251,93,22,82,3 59&lt;BR /&gt;strokeid=. prepost=1 arrdate=28-Mar-1 year=2012 prepost15=1 age=85 sex=F race=W ttn=4 nihss=19 sta=251 ptr=93 dtc=22 ctp=82&lt;BR /&gt;lastmRSscore=3 _ERROR_=1 _N_=13&lt;BR /&gt;NOTE: Invalid data for strokeid in line 23 1-13.&lt;BR /&gt;NOTE: Invalid data for lastmRSscore in line 24 1-13.&lt;BR /&gt;24 13469*SWEDISH,1,31-Mar-12,2012,1,89,M,o,12,,769,180,43,27,6 59&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=29-Mar-1 year=2012 prepost15=1 age=60 sex=F race=W ttn=0 nihss=13 sta=236 ptr=11 dtc=146 ctp=1&lt;BR /&gt;lastmRSscore=. _ERROR_=1 _N_=14&lt;BR /&gt;NOTE: Invalid data for strokeid in line 25 1-13.&lt;BR /&gt;NOTE: Invalid data for dtc in line 26 1-13.&lt;BR /&gt;NOTE: Invalid data for lastmRSscore in line 26 17-24.&lt;BR /&gt;26 13486*SWEDISH,1,4-Apr-12,2012,1,66,F,W,0,25,162,80,,,4 54&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=2-Apr-12 year=2012 prepost15=1 age=41 sex=M race=W ttn=2 nihss=565 sta=112 ptr=2 dtc=. ctp=1&lt;BR /&gt;lastmRSscore=. _ERROR_=1 _N_=15&lt;BR /&gt;NOTE: Invalid data for strokeid in line 27 1-13.&lt;BR /&gt;27 13488*SWEDISH,1,4-Apr-12,2012,1,64,F,W,0,12,152,43,16,54,6 58&lt;BR /&gt;strokeid=. prepost=1 arrdate=4-Apr-12 year=2012 prepost15=1 age=64 sex=F race=W ttn=0 nihss=12 sta=152 ptr=43 dtc=16 ctp=54&lt;BR /&gt;lastmRSscore=6 _ERROR_=1 _N_=16&lt;BR /&gt;NOTE: Invalid data for strokeid in line 28 1-13.&lt;BR /&gt;NOTE: Invalid data for ctp in line 29 1-13.&lt;BR /&gt;29 13515*SWEDISH,1,11-Apr-12,2012,1,61,M,W,0,7,334,81,13,16,3 58&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=9-Apr-12 year=2012 prepost15=1 age=79 sex=M race=W ttn=4 nihss=22 sta=205 ptr=82 dtc=1 ctp=.&lt;BR /&gt;lastmRSscore=1 _ERROR_=1 _N_=17&lt;BR /&gt;NOTE: Invalid data for strokeid in line 30 1-13.&lt;BR /&gt;NOTE: Invalid data for lastmRSscore in line 31 1-13.&lt;BR /&gt;31 13540*SWEDISH,1,15-Apr-12,2012,1,64,F,o,0,18,32,92,5,162,6 58&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=13-Apr-1 year=2012 prepost15=1 age=54 sex=F race=W ttn=0 nihss=13 sta=262 ptr=14 dtc=81 ctp=3&lt;BR /&gt;lastmRSscore=. _ERROR_=1 _N_=18&lt;BR /&gt;NOTE: Invalid data for strokeid in line 32 1-13.&lt;BR /&gt;NOTE: Invalid data for dtc in line 33 1-13.&lt;BR /&gt;NOTE: Invalid data for lastmRSscore in line 33 17-25.&lt;BR /&gt;33 13555*SWEDISH,1,19-Apr-12,2012,1,50,F,W,0,15,697,129,14,27,2 60&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=17-Apr-1 year=2012 prepost15=1 age=54 sex=F race=W ttn=18 nihss=548 sta=101 ptr=1 dtc=. ctp=1&lt;BR /&gt;lastmRSscore=. _ERROR_=1 _N_=19&lt;BR /&gt;NOTE: Invalid data for strokeid in line 34 1-13.&lt;BR /&gt;NOTE: Invalid data for dtc in line 35 1-13.&lt;BR /&gt;NOTE: Invalid data for lastmRSscore in line 35 17-25.&lt;BR /&gt;WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.&lt;BR /&gt;35 13653*SWEDISH,1,14-May-12,2012,1,70,F,o,0,34,157,93,20,6,6 58&lt;BR /&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;strokeid=. prepost=1 arrdate=8-May-12 year=2012 prepost15=1 age=58 sex=F race=W ttn=6 nihss=1060 sta=51 ptr=3 dtc=. ctp=1&lt;BR /&gt;lastmRSscore=. _ERROR_=1 _N_=20&lt;BR /&gt;NOTE: 380 records were read from the infile 'C:\SAS\IAT.csv'.&lt;BR /&gt;The minimum record length was 48.&lt;BR /&gt;The maximum record length was 61.&lt;BR /&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;NOTE: The data set WORK.IAT has 247 observations and 15 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258244#M57338</guid>
      <dc:creator>stancemcgraw</dc:creator>
      <dc:date>2016-03-22T16:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258246#M57339</link>
      <description>&lt;P&gt;StrokeID is not numeric, it cntains character values, so place a $ after strokeid on the input statement &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258246#M57339</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-22T16:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258249#M57340</link>
      <description>It's still giving me the same errors..</description>
      <pubDate>Tue, 22 Mar 2016 16:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258249#M57340</guid>
      <dc:creator>stancemcgraw</dc:creator>
      <dc:date>2016-03-22T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258251#M57341</link>
      <description>&lt;P&gt;You show 2 as the last variable but SAS thinks its 2 53&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the truncover option to your infile statement as well &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a suggestion doesnt work please post the code used and&amp;nbsp;the first portion of the log...it starts to repeat itself.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258251#M57341</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-22T16:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258255#M57342</link>
      <description>&lt;P&gt;LRECL should be the length of your line of data, but if correct input/infield statement are specified setting it to a large number avoids errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please add Truncover to your infile statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258255#M57342</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-22T16:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258256#M57343</link>
      <description>&lt;P&gt;- you get the message that SAS reached past the end of the line; this means you tried to read more variables than data columns are present in the infile. Count the columns in the infile (# of delimiters + 1) and adjust your input statement accordingly&lt;/P&gt;
&lt;P&gt;- if the last column is sometimes empty, use one of the relevant options (MISSOVER or TRUNCOVER) to avoid skipping to the next line&lt;/P&gt;
&lt;P&gt;- your input lines fit easily into one screen line, so the lrecl=32767 is not necessary&lt;/P&gt;
&lt;P&gt;- all other error messages com from trying to read character data as numeric. Add a dollar sign (as others suggested) after each variable in the input statement that causes errors&lt;/P&gt;
&lt;P&gt;- carefully study the log. You can see which data ended up in which variable, so this helps in detecting incorrect order/number of variables in the input statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Being able to read and interpret the log is possibly the most valuable skill when working with SAS programs.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258256#M57343</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-22T16:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258261#M57344</link>
      <description>Since you get values like: 13074*SWEDISH for StrokeId you will want to insure that the length will read the whole value. &lt;BR /&gt;Add: Informat StrokeId $15. ; before the Input statement. If you see truncated values for StrokeId make the informat longer.</description>
      <pubDate>Tue, 22 Mar 2016 16:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258261#M57344</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-22T16:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258262#M57345</link>
      <description>&lt;P&gt;This extract from the log is puzzling me:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Invalid data for strokeid in line 2 1-14.
NOTE: Invalid data for ctp in line 3 1-13.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You get a message for line 2 AND 3 while trying to read the first record&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
3 13074*SWEDISH,1,3-Jan-12,2012,1,83,M,W,0,6,122,,15,,2 53
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You see that the input line is considerably shorter than 100 bytes&lt;/P&gt;
&lt;PRE&gt;NOTE: Invalid data errors for file ''C:\SAS\IAT.csv'' occurred outside the printed range.
NOTE: Increase available buffer lines with the INFILE n= option.
strokeid=. prepost=1 arrdate=3-Jan-12 year=2012 prepost15=1 age=60 sex=F race=W ttn=499 nihss=18 sta=116 ptr=46 dtc=2 ctp=.&lt;/PRE&gt;
&lt;P&gt;Up to prepost15, the variables correspond to the data shown, but every variable after that seems to have values from another line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My advice: open the file with a good text editor (like notepad++ or ultraedit) and have a look at the characters (use hex mode, if necessary)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258262#M57345</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-22T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258264#M57346</link>
      <description>&lt;P&gt;And still another one: since you have consecutive delimiters, add the DSD option to the INFILE statement.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258264#M57346</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-22T16:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Importing an Excel File into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258375#M57351</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78398"&gt;@stancemcgraw﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser﻿&lt;/a&gt;'s latest suggestion (DSD) will&amp;nbsp;improve things considerably. Without DSD the values after the first missing value in a record were read into the wrong variables. Therefore, SAS "went to a new line" and tried to read the values of, e.g., &lt;FONT face="courier new,courier"&gt;ctp&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;lastmRSscore&lt;/FONT&gt; from the first two fields of the next record. The non-numeric stroke ID values found there were "Invalid data" for numeric variable &lt;FONT face="courier new,courier"&gt;ctp&lt;/FONT&gt; as they were initially for &lt;FONT face="courier new,courier"&gt;strokeid&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Needless to say that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;'s important recommendation applies to other character variables as well. In particular, it applies to &lt;FONT face="courier new,courier"&gt;arrdate&lt;/FONT&gt;, for which truncated date values such as "19-Jan-1" are already documented in the log, because you didn't specify a length ($9) nor an informat ($9.) for this variable. Actually, I would rather recommend to store SAS date values in this variable, i.e., to replace &lt;FONT face="courier new,courier"&gt;arrdate $&lt;/FONT&gt; by &lt;FONT face="courier new,courier"&gt;arrdate :date.&lt;/FONT&gt; in the INPUT statement and to format this variable, e.g., with DATE7. or your favorite date format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "puzzling" references to lines 2 and 3 for the "first" record were due to firstobs=2 and "SAS went to a new line" (due to omitting DSD), respectively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What looks like odd values "2 53" in the log is just the last value of the record (2), followed by the length of the current record (53).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 22:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-an-Excel-File-into-SAS/m-p/258375#M57351</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-03-22T22:55:27Z</dc:date>
    </item>
  </channel>
</rss>

