<?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: data transoding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949053#M371299</link>
    <description>&lt;P&gt;See if this works to remove tab characters for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data test;
   set yourdatsetname;
   newvar = compress(var,,'h');
run;&lt;/PRE&gt;
&lt;P&gt;The two commas in the parameters for the Compress function means you are not supply a character to remove by typing it. The 'h' adds the horizontal tab character to the list of characters to remove, so the above should only remove horizontal tab characters.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2024 17:24:41 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-10-25T17:24:41Z</dc:date>
    <item>
      <title>data transoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949049#M371297</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;I have an issue can someone help me.&lt;/P&gt;
&lt;P&gt;I have a colonne value like this :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;var ="USERNUM1,	Counter{F}Compteur				,
USERTEXT1,	Trigram{F}Trigramme				,ALL~All{F}Tous	GBR~GBR{F}GBR	ITA~ITA{F}ITA"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Notice that after the commaas, i have tabulate.&lt;/P&gt;
&lt;P&gt;how can i have as result :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;var = "USERNUM1,Counter{F}Compteur,USERTEXT1,Trigram{F}Trigramme,ALL~All{F}Tous GBR~GBR{F}GBR ITA~ITA{F}ITA"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Oct 2024 16:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949049#M371297</guid>
      <dc:creator>ajulio4</dc:creator>
      <dc:date>2024-10-25T16:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: data transoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949053#M371299</link>
      <description>&lt;P&gt;See if this works to remove tab characters for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data test;
   set yourdatsetname;
   newvar = compress(var,,'h');
run;&lt;/PRE&gt;
&lt;P&gt;The two commas in the parameters for the Compress function means you are not supply a character to remove by typing it. The 'h' adds the horizontal tab character to the list of characters to remove, so the above should only remove horizontal tab characters.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 17:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949053#M371299</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-10-25T17:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: data transoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949087#M371314</link>
      <description>&lt;P&gt;Also try to remove the newline characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   set yourdatsetname;
   newvar = compress(var,'0D0A'x,'s');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Oct 2024 07:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949087#M371314</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-26T07:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: data transoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949094#M371315</link>
      <description>&lt;P&gt;It looks to me that the compress() function s modifier should remove the characters you don't want.&lt;/P&gt;
&lt;PRE&gt;newar=compress(var,,'s');&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/ds2ref/n01p24mgwawxa2n1hy4gwe5t59xf.htm" target="_self"&gt;COMPRESS Function&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;s or S adds space characters (blank, horizontal tab, vertical tab, carriage return, line feed, form feed, and NBSP ('A0'x, or 160 decimal ASCII) to the list of characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2024 12:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949094#M371315</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-10-26T12:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: data transoding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949117#M371319</link>
      <description>&lt;P&gt;Thks so much&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 09:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-transoding/m-p/949117#M371319</guid>
      <dc:creator>ajulio4</dc:creator>
      <dc:date>2024-10-27T09:02:55Z</dc:date>
    </item>
  </channel>
</rss>

