<?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: raw data fetching in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/raw-data-fetching/m-p/326698#M9519</link>
    <description>Thank you..i ll try this code.</description>
    <pubDate>Mon, 23 Jan 2017 12:50:46 GMT</pubDate>
    <dc:creator>komalbatra</dc:creator>
    <dc:date>2017-01-23T12:50:46Z</dc:date>
    <item>
      <title>raw data fetching</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/raw-data-fetching/m-p/326660#M9517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i am fetching raw data from external file and it is too heavy to open and there is a junk character in it which is not allowing me too fetch the data then how can we resolve this problem???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 10:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/raw-data-fetching/m-p/326660#M9517</guid>
      <dc:creator>komalbatra</dc:creator>
      <dc:date>2017-01-23T10:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: raw data fetching</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/raw-data-fetching/m-p/326688#M9518</link>
      <description>&lt;P&gt;Does the log indicate which line the junk character is in?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had a similar problem, and I did this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all, figuire out what the issue is by just outputting the line with the junk character, something like (say the problem is in line 637):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;infile 'blah';&lt;/P&gt;
&lt;P&gt;file 'blah';&lt;/P&gt;
&lt;P&gt;input;&lt;/P&gt;
&lt;P&gt;if _n_ = 637 then put _infile_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then examine the output file to figure out what the issue with the junk character is, and resolve it. The _infile_ variable can be quite helpful. I can't test it, but I think something like this would work (say your problem is in character 146):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;infile 'blah';&lt;/P&gt;
&lt;P&gt;file 'blah';&lt;/P&gt;
&lt;P&gt;length InputRecord $whatever;&lt;/P&gt;
&lt;P&gt;input;&lt;/P&gt;
&lt;P&gt;if _n_ = 637&lt;/P&gt;
&lt;P&gt;then do;&lt;/P&gt;
&lt;P&gt;InputRecord = substr(_infile_, 1, 145)||substr(infile, 147);&lt;/P&gt;
&lt;P&gt;put InputRecord;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;else&amp;nbsp;put _infile_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some combination of these kinds of operations should get you going.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 12:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/raw-data-fetching/m-p/326688#M9518</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-01-23T12:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: raw data fetching</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/raw-data-fetching/m-p/326698#M9519</link>
      <description>Thank you..i ll try this code.</description>
      <pubDate>Mon, 23 Jan 2017 12:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/raw-data-fetching/m-p/326698#M9519</guid>
      <dc:creator>komalbatra</dc:creator>
      <dc:date>2017-01-23T12:50:46Z</dc:date>
    </item>
  </channel>
</rss>

