<?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: Replace this special character automatically in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replace-this-special-character-automatically/m-p/780480#M248697</link>
    <description>&lt;P&gt;Is that character in the source code for your program? Or some data file your program is reading?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either way try looking at the file using SAS to see what actual hex code it is that is there before the end of line.&lt;/P&gt;
&lt;P&gt;Perhaps by running a program like this to get the last byte before the end of line for each line in a file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data lastch ;
  infile 'myfile.txt' length=linelength truncover;
  row+1;
  input @;
  if linelength &amp;gt; 0;
  input @linelength char $char1. ;
  hex=put(char,$hex2.);
run;

proc freq data=lastch;
  tables hex*char / list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 15:53:48 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-11-16T15:53:48Z</dc:date>
    <item>
      <title>Replace this special character automatically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-this-special-character-automatically/m-p/780371#M248647</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My SAS program doesn't work, because I have a flash "-&amp;gt;"&amp;nbsp; instead of point "." before the CRLF:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarieT_0-1637053794976.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65741i98094D86515BD061/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarieT_0-1637053794976.png" alt="MarieT_0-1637053794976.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Do you know, pease, how to replace this special character automatically via Notepad++ ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much !&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 09:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-this-special-character-automatically/m-p/780371#M248647</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-11-16T09:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replace this special character automatically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-this-special-character-automatically/m-p/780401#M248666</link>
      <description>Just copy this character into REPLACE dialogue window ?</description>
      <pubDate>Tue, 16 Nov 2021 12:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-this-special-character-automatically/m-p/780401#M248666</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-16T12:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replace this special character automatically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-this-special-character-automatically/m-p/780480#M248697</link>
      <description>&lt;P&gt;Is that character in the source code for your program? Or some data file your program is reading?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either way try looking at the file using SAS to see what actual hex code it is that is there before the end of line.&lt;/P&gt;
&lt;P&gt;Perhaps by running a program like this to get the last byte before the end of line for each line in a file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data lastch ;
  infile 'myfile.txt' length=linelength truncover;
  row+1;
  input @;
  if linelength &amp;gt; 0;
  input @linelength char $char1. ;
  hex=put(char,$hex2.);
run;

proc freq data=lastch;
  tables hex*char / list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 15:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-this-special-character-automatically/m-p/780480#M248697</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-11-16T15:53:48Z</dc:date>
    </item>
  </channel>
</rss>

