<?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: Getting unwanted special character \n  in one of the variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Getting-unwanted-special-character-n-in-one-of-the-variable/m-p/765521#M80970</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/79200"&gt;@VVDR&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Good day !!!&lt;/P&gt;
&lt;P&gt;When I am extracting the data directly from AWS S3 to SAS, I am getting a special character only to few observations and that is not expected and not present in the source.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex: For Column ID=100, In the Description variable value I am getting like this below.&lt;/P&gt;
&lt;P&gt;" This is has to be state level&lt;FONT color="#FF0000"&gt;&amp;nbsp;\n&amp;nbsp;&lt;/FONT&gt; information to get the business &lt;FONT color="#FF0000"&gt;\n&lt;/FONT&gt; details&amp;nbsp;&lt;FONT color="#FF0000"&gt;\n&lt;/FONT&gt; "&lt;/P&gt;
&lt;P&gt;Something like this.&lt;/P&gt;
&lt;P&gt;Please advise what could be the reason. Column Description has 2000 character Length defined in the Dataset attributes level.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How are you looking at the data that leads you to believe "not present in the source"? If it is a viewer application from the source does that row display text in that variable/field/column on 3 lines in the data? If so those may be instructions for that viewer to display the following text on a "new line". The characters are there just not displayed in some application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can remove them in a data step with code like:&lt;/P&gt;
&lt;PRE&gt;data example;
   x=" This is has to be state level \n  information to get the business \n details \n ";
   x=compbl(tranwrd(x,'\n','') );
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Sep 2021 22:58:14 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-09-01T22:58:14Z</dc:date>
    <item>
      <title>Getting unwanted special character \n  in one of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-unwanted-special-character-n-in-one-of-the-variable/m-p/765520#M80969</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Good day !!!&lt;/P&gt;
&lt;P&gt;When I am extracting the data directly from AWS S3 to SAS, I am getting a special character only to few observations and that is not expected and not present in the source.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex: For Column ID=100, In the Description variable value I am getting like this below.&lt;/P&gt;
&lt;P&gt;" This is has to be state level&lt;FONT color="#FF0000"&gt;&amp;nbsp;\n&amp;nbsp;&lt;/FONT&gt; information to get the business &lt;FONT color="#FF0000"&gt;\n&lt;/FONT&gt; details&amp;nbsp;&lt;FONT color="#FF0000"&gt;\n&lt;/FONT&gt; "&lt;/P&gt;
&lt;P&gt;Something like this.&lt;/P&gt;
&lt;P&gt;Please advise what could be the reason. Column Description has 2000 character Length defined in the Dataset attributes level.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 22:42:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-unwanted-special-character-n-in-one-of-the-variable/m-p/765520#M80969</guid>
      <dc:creator>VVDR</dc:creator>
      <dc:date>2021-09-01T22:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting unwanted special character \n  in one of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-unwanted-special-character-n-in-one-of-the-variable/m-p/765521#M80970</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/79200"&gt;@VVDR&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Good day !!!&lt;/P&gt;
&lt;P&gt;When I am extracting the data directly from AWS S3 to SAS, I am getting a special character only to few observations and that is not expected and not present in the source.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex: For Column ID=100, In the Description variable value I am getting like this below.&lt;/P&gt;
&lt;P&gt;" This is has to be state level&lt;FONT color="#FF0000"&gt;&amp;nbsp;\n&amp;nbsp;&lt;/FONT&gt; information to get the business &lt;FONT color="#FF0000"&gt;\n&lt;/FONT&gt; details&amp;nbsp;&lt;FONT color="#FF0000"&gt;\n&lt;/FONT&gt; "&lt;/P&gt;
&lt;P&gt;Something like this.&lt;/P&gt;
&lt;P&gt;Please advise what could be the reason. Column Description has 2000 character Length defined in the Dataset attributes level.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How are you looking at the data that leads you to believe "not present in the source"? If it is a viewer application from the source does that row display text in that variable/field/column on 3 lines in the data? If so those may be instructions for that viewer to display the following text on a "new line". The characters are there just not displayed in some application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can remove them in a data step with code like:&lt;/P&gt;
&lt;PRE&gt;data example;
   x=" This is has to be state level \n  information to get the business \n details \n ";
   x=compbl(tranwrd(x,'\n','') );
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Sep 2021 22:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-unwanted-special-character-n-in-one-of-the-variable/m-p/765521#M80970</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-01T22:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting unwanted special character \n  in one of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-unwanted-special-character-n-in-one-of-the-variable/m-p/765540#M80971</link>
      <description>Hi ballardw,&lt;BR /&gt;Thanks for your quick reply. And what you have advised is absolutely correct. In the upstream it is divided the observation value into 3 lines and sas is separating it with \n. &lt;BR /&gt;Thanks again for sharing the knowledge.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 02 Sep 2021 03:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-unwanted-special-character-n-in-one-of-the-variable/m-p/765540#M80971</guid>
      <dc:creator>VVDR</dc:creator>
      <dc:date>2021-09-02T03:58:19Z</dc:date>
    </item>
  </channel>
</rss>

