<?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: How to unwrap a string in a column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818114#M322926</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310312"&gt;@Vimal08&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Team, I have a column where output is a string that looks like a path (/home/sas/demo/data). But the value is getting wrapped and the output is coming like this: /home/sas/ demo/data Please help me, how I can unwrap this string in the output? and get the desire output (/home/sas/demo/data). Your help will be highly appreciated.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What output?&amp;nbsp; What procedure produced the output?&amp;nbsp; What type of destination did you use?&lt;/P&gt;
&lt;P&gt;Can you create a simplified example that exhibits the issue?&lt;/P&gt;
&lt;P&gt;Either include that data in your example as a SAS data step.&amp;nbsp; Or use one of the existing SASHELP datasets to demonstrate the issue.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 15:23:18 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-06-14T15:23:18Z</dc:date>
    <item>
      <title>How to unwrap a string in a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818108#M322924</link>
      <description>Hi Team,

I have a column where output is a string that looks like a path (/home/sas/demo/data).
But the value is getting wrapped and the output is coming like this:
/home/sas/
demo/data

Please help me, how I can unwrap this string in the output? and get the desire output (/home/sas/demo/data).
Your help will be highly appreciated.</description>
      <pubDate>Tue, 14 Jun 2022 15:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818108#M322924</guid>
      <dc:creator>Vimal08</dc:creator>
      <dc:date>2022-06-14T15:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to unwrap a string in a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818114#M322926</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310312"&gt;@Vimal08&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Team, I have a column where output is a string that looks like a path (/home/sas/demo/data). But the value is getting wrapped and the output is coming like this: /home/sas/ demo/data Please help me, how I can unwrap this string in the output? and get the desire output (/home/sas/demo/data). Your help will be highly appreciated.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What output?&amp;nbsp; What procedure produced the output?&amp;nbsp; What type of destination did you use?&lt;/P&gt;
&lt;P&gt;Can you create a simplified example that exhibits the issue?&lt;/P&gt;
&lt;P&gt;Either include that data in your example as a SAS data step.&amp;nbsp; Or use one of the existing SASHELP datasets to demonstrate the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818114#M322926</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-14T15:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to unwrap a string in a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818123#M322930</link>
      <description>&lt;P&gt;Try the COMPRESS() function with the S modifier. However, if you have spaces in the path those will also disappear.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;var = compress(var, , 's');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to remove only carriage returns you can try the following where '0x0D'x is the hex code for a carriage return/line wrap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;var_clean = compress(var, '0x0D'x)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310312"&gt;@Vimal08&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Team, I have a column where output is a string that looks like a path (/home/sas/demo/data). But the value is getting wrapped and the output is coming like this: /home/sas/ demo/data Please help me, how I can unwrap this string in the output? and get the desire output (/home/sas/demo/data). Your help will be highly appreciated.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818123#M322930</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-14T15:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to unwrap a string in a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818138#M322936</link>
      <description>&lt;P&gt;Thank you. It worked.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 16:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818138#M322936</guid>
      <dc:creator>Vimal08</dc:creator>
      <dc:date>2022-06-14T16:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to unwrap a string in a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818285#M323002</link>
      <description>Reeza,&lt;BR /&gt;&lt;BR /&gt;var_clean = compress(var, '0x0D'x)&lt;BR /&gt;could wrote as &lt;BR /&gt;var_clean = compress(var, '0D'x)&lt;BR /&gt;?</description>
      <pubDate>Wed, 15 Jun 2022 12:34:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818285#M323002</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-15T12:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to unwrap a string in a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818338#M323016</link>
      <description>Yes, appears that also works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818338#M323016</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-15T15:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to unwrap a string in a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818342#M323018</link>
      <description>&lt;PRE&gt;23   data _null_;
24     c1 = '0D'x;
25     c2 = '0x0D'x ;
ERROR: Invalid hexadecimal constant string '0x0D'x.
26     put (c1 c2) (=$hex.);
27   run;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unwrap-a-string-in-a-column/m-p/818342#M323018</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-15T15:17:15Z</dc:date>
    </item>
  </channel>
</rss>

