<?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: Conditional Concatenation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/544774#M150666</link>
    <description>&lt;P&gt;Please Help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to concatenate all the columns ending with _A in a table. I have more then 60 columns ending with _A in a table 90 columns&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 07:51:52 GMT</pubDate>
    <dc:creator>mohdfaisal89</dc:creator>
    <dc:date>2019-03-21T07:51:52Z</dc:date>
    <item>
      <title>Conditional Concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/508862#M136699</link>
      <description>&lt;P&gt;I am trying to figure out a way to concatenate a set of columns, while skipping some when the value = "no". Unfortunately because of how the entire program is structured I am unable to change the no values to null.&amp;nbsp; Please let me know.. Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 379px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24496iCA54E558CF2598F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 18:21:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/508862#M136699</guid>
      <dc:creator>dane7722</dc:creator>
      <dc:date>2018-10-30T18:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/508865#M136701</link>
      <description>&lt;P&gt;Can you post as plain text for me to copy paste and test&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 18:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/508865#M136701</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-30T18:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/508866#M136702</link>
      <description>Changing no to null is the easiest way, because you can then use CATX.&lt;BR /&gt;&lt;BR /&gt;You could duplicate the array and then set it to missing and use that. Otherwise you need to loop and conditionally apply catx each variable.&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;&lt;BR /&gt;array _col(5) _col1-_col5;&lt;BR /&gt;array col(5) col1-col5;&lt;BR /&gt;do i=1 to 5;&lt;BR /&gt;if col(i) ne 'no' then _col(i)=col(i);&lt;BR /&gt;end;&lt;BR /&gt;want = catx("_", of _col(*));&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Oct 2018 18:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/508866#M136702</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-30T18:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/508871#M136706</link>
      <description>&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 18:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/508871#M136706</guid>
      <dc:creator>dane7722</dc:creator>
      <dc:date>2018-10-30T18:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Concatenation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/544774#M150666</link>
      <description>&lt;P&gt;Please Help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to concatenate all the columns ending with _A in a table. I have more then 60 columns ending with _A in a table 90 columns&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 07:51:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Conditional-Concatenation/m-p/544774#M150666</guid>
      <dc:creator>mohdfaisal89</dc:creator>
      <dc:date>2019-03-21T07:51:52Z</dc:date>
    </item>
  </channel>
</rss>

