<?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: 0 records read from file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764163#M242025</link>
    <description>Can you post one of them,? so we can test it and find out where is problem.</description>
    <pubDate>Thu, 26 Aug 2021 12:05:21 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-08-26T12:05:21Z</dc:date>
    <item>
      <title>0 records read from file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764135#M242009</link>
      <description>&lt;P&gt;I have 10 different csv files that I am importing.&lt;/P&gt;
&lt;P&gt;8 of them import perfectly however the other dont don't import, there are no apparent differences between the files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is the log:&lt;/P&gt;
&lt;DIV class="sasNote"&gt;
&lt;PRE&gt;NOTE: The infile DUMMY is:
Filename=\peter\testing\sales_Dec20,
RECFM=V,LRECL=32767,File Size (bytes)=1240186,
Last Modified=15 June 2021 04:26:00,
Create Time=26 August 2021 19:10:30

NOTE: 0 records were read from the infile DUMMY.&lt;/PRE&gt;
I have been trying to work this out for a long time, but I can't seem to find whats wrong?&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;When I open the files in excel they all look the same. Is there any way I can inspect the file or something like that? It is very strange that this is happening.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;I imported all the files into R with ease, but for some reason SAS doesn't like these two files...&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Any help would be appreciated, thanks.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Aug 2021 09:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764135#M242009</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2021-08-26T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: 0 records read from file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764138#M242011</link>
      <description>&lt;P&gt;Inspect the files with a suitable text editor (e.g. Notepad++). It may be that your files use LF only as a record terminator (UNIX style).&lt;/P&gt;
&lt;P&gt;Good text editors (see above) can show you the line termination style and reveal hidden characters.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 09:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764138#M242011</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-26T09:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: 0 records read from file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764139#M242012</link>
      <description>&lt;P&gt;Hints:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Post the code you are using, and please use "insert sas code"&lt;/LI&gt;
&lt;LI&gt;post the complete log using "insert code"&lt;/LI&gt;
&lt;LI&gt;don't open csv-files in excel, as it almost always does some dark magic to hide the real content of the file, use a text-editor instead&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 26 Aug 2021 09:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764139#M242012</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-08-26T09:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: 0 records read from file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764140#M242013</link>
      <description>&lt;P&gt;I am in the process of looking into the the files. If my files do use LF only, how do I deal with this?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 09:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764140#M242013</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2021-08-26T09:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: 0 records read from file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764142#M242014</link>
      <description>&lt;P&gt;Since you need to adapt the TERMSTR option, this may need macro coding, and will prevent you from reading a bunch of files in one data step.&lt;/P&gt;
&lt;P&gt;If you need to set this up for some kind of production use, insist that consistent file formats are used.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 10:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764142#M242014</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-26T10:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: 0 records read from file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764163#M242025</link>
      <description>Can you post one of them,? so we can test it and find out where is problem.</description>
      <pubDate>Thu, 26 Aug 2021 12:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764163#M242025</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-08-26T12:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: 0 records read from file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764165#M242026</link>
      <description>&lt;P&gt;I think I have just found the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is the free text field in my data that seems to be the problem, most cell entries are like this:&lt;/P&gt;
&lt;P&gt;jennifer wants $10000&lt;/P&gt;
&lt;P&gt;sales too low&lt;/P&gt;
&lt;P&gt;over the limit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However there are a few entries that have an equals at the beginning, like so:&lt;/P&gt;
&lt;P&gt;=jennifer wants $10000&lt;/P&gt;
&lt;P&gt;=sales too low&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I went into the raw data and removed the equals sign, the data successfully loaded in.&lt;/P&gt;
&lt;P&gt;I don't understand why this is tho. I discovered this fix by trial and error pretty much.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 12:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/0-records-read-from-file/m-p/764165#M242026</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2021-08-26T12:09:50Z</dc:date>
    </item>
  </channel>
</rss>

