<?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: Invalid character produces error at export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Invalid-character-produces-error-at-export/m-p/806292#M317639</link>
    <description>&lt;P&gt;The question might be are there are any periods that you want to keep in that field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps:&lt;/P&gt;
&lt;PRE&gt; data test;
 last_name = 'stanley jr.';
 last_name = compress(last_name,'.','t');
 run;&lt;/PRE&gt;
&lt;P&gt;which will remove all periods in the field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data design note: JR, SR, II, III, IV, 'the third'&amp;nbsp; and such are not really part of a last name field and perhaps should be in a separate field.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 14:18:32 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-04-06T14:18:32Z</dc:date>
    <item>
      <title>Invalid character produces error at export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-character-produces-error-at-export/m-p/806287#M317637</link>
      <description>&lt;PRE&gt; data test;
 last_name = 'stanley jr.';
 run;

 data _null_;
 file "my_file.txt" lrecl=119 TERMSTR=crlf;
 set test;
 put @1 last_name  $26.
 ;run;&lt;/PRE&gt;
&lt;P&gt;The customer receiving the file runs it through an outside program&lt;BR /&gt;For some reason it gives an invaild character message. It appears the&lt;BR /&gt;period at the end of Jr is causing the invalid character. Is there a&lt;BR /&gt;way to truncate the period at the end of the name if it exists&amp;nbsp; to help avoid the invalid character&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 13:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-character-produces-error-at-export/m-p/806287#M317637</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2022-04-06T13:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid character produces error at export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-character-produces-error-at-export/m-p/806292#M317639</link>
      <description>&lt;P&gt;The question might be are there are any periods that you want to keep in that field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps:&lt;/P&gt;
&lt;PRE&gt; data test;
 last_name = 'stanley jr.';
 last_name = compress(last_name,'.','t');
 run;&lt;/PRE&gt;
&lt;P&gt;which will remove all periods in the field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data design note: JR, SR, II, III, IV, 'the third'&amp;nbsp; and such are not really part of a last name field and perhaps should be in a separate field.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-character-produces-error-at-export/m-p/806292#M317639</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-06T14:18:32Z</dc:date>
    </item>
  </channel>
</rss>

