<?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: infile error in SAS university edition in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398770#M19441</link>
    <description>&lt;P&gt;Please folllow my advice from your other post.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;USE THE {I} ICON TO POST LOG OR INFILE TEXT!&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;You can see what the main posting window is doing to your text:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/135364"&gt;@suraj&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Please help me with this: I am getting below error while submitting this code. I have a txt file with delimeter "|" and One coloum Names has names like Suraj, Singhal James, Garg I want to import this data without proc import data. data New; infile '/C:/temp/test23.csv' dlm="|" firstobs=5 ; input name $ M_Name $ Type $ Month $ Year $ MetCount AppCount PercentMet; run; NOTE: Invalid data for MetCount in line 14 1-170. NOTE: Invalid data for AppCount in line 15 1-171. NOTE: Invalid data for PercentMet in line 16 1-195. RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+--- NOTE: Invalid data errors for file ''/C:/temp/test23.csv'' occurred outside the printed range. NOTE: Increase available buffer lines with the INFILE n= option. Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Post the relevant sample of your infile (up to line 16 ff).&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 12:27:29 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-09-26T12:27:29Z</dc:date>
    <item>
      <title>infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398759#M19439</link>
      <description>&lt;P&gt;Please help me with this: I am getting below error while submitting this code. I have a txt file with delimeter "|" and One coloum Names has names like Suraj, Singhal James, Garg I want to import this data without proc import data. data New; infile '/C:/temp/test23.csv' dlm="|" firstobs=5 ; input name $ M_Name $ Type $ Month $ Year $ MetCount AppCount PercentMet; run; NOTE: Invalid data for MetCount in line 14 1-170. NOTE: Invalid data for AppCount in line 15 1-171. NOTE: Invalid data for PercentMet in line 16 1-195. RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+--- NOTE: Invalid data errors for file ''/C:/temp/test23.csv'' occurred outside the printed range. NOTE: Increase available buffer lines with the INFILE n= option. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 10:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398759#M19439</guid>
      <dc:creator>suraj</dc:creator>
      <dc:date>2017-09-26T10:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398769#M19440</link>
      <description>&lt;P&gt;I don't think we can answer this without seeing the actual data...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 12:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398769#M19440</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-26T12:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398770#M19441</link>
      <description>&lt;P&gt;Please folllow my advice from your other post.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;USE THE {I} ICON TO POST LOG OR INFILE TEXT!&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;You can see what the main posting window is doing to your text:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/135364"&gt;@suraj&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Please help me with this: I am getting below error while submitting this code. I have a txt file with delimeter "|" and One coloum Names has names like Suraj, Singhal James, Garg I want to import this data without proc import data. data New; infile '/C:/temp/test23.csv' dlm="|" firstobs=5 ; input name $ M_Name $ Type $ Month $ Year $ MetCount AppCount PercentMet; run; NOTE: Invalid data for MetCount in line 14 1-170. NOTE: Invalid data for AppCount in line 15 1-171. NOTE: Invalid data for PercentMet in line 16 1-195. RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+--- NOTE: Invalid data errors for file ''/C:/temp/test23.csv'' occurred outside the printed range. NOTE: Increase available buffer lines with the INFILE n= option. Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Post the relevant sample of your infile (up to line 16 ff).&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 12:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398770#M19441</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-26T12:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398772#M19442</link>
      <description>&lt;P&gt;Take the time to tell SAS how to define your variables. It will make it much easier for you. &amp;nbsp;You probably also want to use the DSD and TRUNCOVER options on your INFILE statement so that SAS will properly locate missing vlaues and also not try to find missing data by going to the next line of the input file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data New;
  infile '/C:/temp/test23.csv' dlm="|" firstobs=5 dsd truncover ;
  length name $100 M_Name $50 Type $8 Month $10 Year $4 
       MetCount 8 AppCount 8 PercentMet 8
  ;
  input name M_Name Type Month Year MetCount AppCount PercentMet; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS Do you really have a directory named 'C:' in the root directory of your Unix filesystem?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 12:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398772#M19442</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-26T12:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398796#M19444</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data New;&lt;BR /&gt;infile '/temp/new_test1.bat' dlm="|" firstobs=5 dsd truncover ;&lt;BR /&gt;length name $100 m_name $100 &amp;nbsp;inputMonth $100 inputYear $100 MetCount 8 AppCount 8 PercentMet 8&lt;BR /&gt;;&lt;BR /&gt;input name m_name inputMonth inputYear MetCount AppCount PercentMet;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used above code still I am not able to get data now it is not cosidering the delimeter reads like&lt;/P&gt;&lt;P&gt;obs &amp;nbsp; &amp;nbsp; &amp;nbsp;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m_name&lt;/P&gt;&lt;P&gt;&amp;nbsp;1 SURAJ, SINGHAL|JA&amp;nbsp; MES, GARG|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still getting warning notes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Invalid data for PercentMet in line 9 165-167.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398796#M19444</guid>
      <dc:creator>suraj</dc:creator>
      <dc:date>2017-09-26T13:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398801#M19445</link>
      <description>&lt;P&gt;It should not have put | into the values of the variables if you used | as the delimiter on the INFILE statement. The only way that could happen would be if the | occured inside of quotes in the data lines. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post some sample data lines (redact any sensitive information.) &amp;nbsp;Make sure to use the Insert Code icon in the forum editor. Looks like {i} on the tool bar at the top of the edit box. &amp;nbsp;This will preserve the formatting of the lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I simple way to get some sample lines is to run a quick SAS data step. &amp;nbsp;So this will print the first 10 lines in your file to the SAS log. And if any of the lines contain unprintable characters it will also show the ASCII codes (in HEX) for those lines.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile '/temp/new_test1.bat' obs=10;
  input;
  list;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/infile-error-in-SAS-university-edition/m-p/398801#M19445</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-26T13:55:10Z</dc:date>
    </item>
  </channel>
</rss>

