<?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: Special characters that stop the input processing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114023#M23499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than trying to remove the characters, on your infile statement have you tried to include the ignoredoseof option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2012 19:04:17 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-09-06T19:04:17Z</dc:date>
    <item>
      <title>Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114020#M23496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a problem reading a huge file. The sas code only read part of the input records and stop without any error. Further examine the file where the input was stop, we find a symbol 'E S' that halted any further processing. The HEX value is '1A'.&amp;nbsp; We have tried:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; infile fin lrecl=314 truncover;&lt;BR /&gt; input @;&lt;BR /&gt;_infile_=compress(_infile_,' ','NK'); &lt;BR /&gt; &lt;BR /&gt; input&amp;nbsp; ;&lt;BR /&gt; file tst;&lt;BR /&gt; put _infile_;&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt;But it does not work. Does anyone has this problem and how to resolve this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 18:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114020#M23496</guid>
      <dc:creator>oht</dc:creator>
      <dc:date>2012-09-06T18:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114021#M23497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the purpose of&amp;nbsp;&amp;nbsp; "compress(_infile_,' ','NK');"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 18:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114021#M23497</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-09-06T18:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114022#M23498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose to remove all the special char. But it didn't work in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 19:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114022#M23498</guid>
      <dc:creator>oht</dc:creator>
      <dc:date>2012-09-06T19:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114023#M23499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than trying to remove the characters, on your infile statement have you tried to include the ignoredoseof option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 19:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114023#M23499</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-09-06T19:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114024#M23500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to only keep numbers then try:&lt;/P&gt;&lt;P&gt;_infile_=compress(_infile_,,'kd');&lt;/P&gt;&lt;P&gt;if you want to keep both numbers and characters then try:&lt;/P&gt;&lt;P&gt;_infile_=compress(_infile_,,'kda');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 19:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114024#M23500</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-09-06T19:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114025#M23501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;From the LRECL option you've specified I'm guessing that maybe this is a fixed rec size file, am I right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If so, there's no CR/LF in the file and you have to specify the option recfm=F, then SAS will import everything to the end of each record (314 in length).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Then compress with modifier kpw (keep punction + printable chars) will remove the SUB code (1Ax).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;infile fin lrecl=&lt;STRONG&gt;314&lt;/STRONG&gt; truncover recfm=F;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;input @;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;_infile_=compress(_infile_,'','kpw'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;put _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cheers from Portugal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 09:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114025#M23501</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2012-09-07T09:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114026#M23502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still vote for trying the ignoredoseof option.&amp;nbsp; It was incorporated, specifically, to deal with the presence of 1A characters.&amp;nbsp; Take a look at: &lt;A href="http://www.sascommunity.org/wiki/IGNOREDOSEOF_Option" title="http://www.sascommunity.org/wiki/IGNOREDOSEOF_Option"&gt;http://www.sascommunity.org/wiki/IGNOREDOSEOF_Option&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 13:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114026#M23502</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-09-07T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114027#M23503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are absolutely right. I tested the code and it works out beautifully. Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 13:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114027#M23503</guid>
      <dc:creator>oht</dc:creator>
      <dc:date>2012-09-07T13:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114028#M23504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your code. Our files are comma delimited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 13:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114028#M23504</guid>
      <dc:creator>oht</dc:creator>
      <dc:date>2012-09-07T13:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters that stop the input processing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114029#M23505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linlin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code elminated to many other symbol such as - , which we might need to retain. Besides, if the file come in as a fixed column, then the compress will shift that record left which can be a headache for the input statement.&lt;/P&gt;&lt;P&gt;Anyway, thanks for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 13:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters-that-stop-the-input-processing/m-p/114029#M23505</guid>
      <dc:creator>oht</dc:creator>
      <dc:date>2012-09-07T13:50:09Z</dc:date>
    </item>
  </channel>
</rss>

