<?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: Concatenate multiple column and add space and hyphen in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-column-and-add-space-and-hyphen/m-p/801532#M315445</link>
    <description>&lt;P&gt;I think I figure out a simpler method using catx and cats. But if you have any other ideas, feel free to post and help whoever may look for an answer for the same question. Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 22:08:51 GMT</pubDate>
    <dc:creator>Xiaoyi</dc:creator>
    <dc:date>2022-03-10T22:08:51Z</dc:date>
    <item>
      <title>Concatenate multiple column and add space and hyphen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-column-and-add-space-and-hyphen/m-p/801522#M315442</link>
      <description>&lt;P&gt;Concatenate multiple column and add space&lt;/P&gt;
&lt;P&gt;I want to concatenate multiple column to a new var as show below, adding space and other signs. I wrote a very long and a little complicated catx with many layers.&lt;/P&gt;
&lt;P&gt;I wonder if you have a more straight forward and much simpler way to do this. Thank you in advance.&lt;/P&gt;
&lt;TABLE width="388px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="61.7778px" height="30px"&gt;Obs&lt;/TD&gt;
&lt;TD width="61.875px" height="30px"&gt;count&lt;/TD&gt;
&lt;TD width="61.7917px" height="30px"&gt;prev&lt;/TD&gt;
&lt;TD width="61.8125px" height="30px"&gt;CI_L&lt;/TD&gt;
&lt;TD width="61.8403px" height="30px"&gt;CI_H&lt;/TD&gt;
&lt;TD width="77.9028px" height="30px"&gt;Newvar&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="61.7778px" height="57px"&gt;1&lt;/TD&gt;
&lt;TD width="61.875px" height="57px"&gt;22&lt;/TD&gt;
&lt;TD width="61.7917px" height="57px"&gt;1.2&lt;/TD&gt;
&lt;TD width="61.8125px" height="57px"&gt;0.7&lt;/TD&gt;
&lt;TD width="61.8403px" height="57px"&gt;1.8&lt;/TD&gt;
&lt;TD width="77.9028px" height="57px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;1.2 (0.7-1.8)&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="61.7778px" height="57px"&gt;2&lt;/TD&gt;
&lt;TD width="61.875px" height="57px"&gt;66&lt;/TD&gt;
&lt;TD width="61.7917px" height="57px"&gt;3.5&lt;/TD&gt;
&lt;TD width="61.8125px" height="57px"&gt;2.7&lt;/TD&gt;
&lt;TD width="61.8403px" height="57px"&gt;4.4&lt;/TD&gt;
&lt;TD width="77.9028px" height="57px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;3.5 (2.7-4.4)&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="61.7778px" height="57px"&gt;3&lt;/TD&gt;
&lt;TD width="61.875px" height="57px"&gt;121&lt;/TD&gt;
&lt;TD width="61.7917px" height="57px"&gt;6.4&lt;/TD&gt;
&lt;TD width="61.8125px" height="57px"&gt;5.3&lt;/TD&gt;
&lt;TD width="61.8403px" height="57px"&gt;7.6&lt;/TD&gt;
&lt;TD width="77.9028px" height="57px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;6.4 (5.3-7.6)&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 21:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-column-and-add-space-and-hyphen/m-p/801522#M315442</guid>
      <dc:creator>Xiaoyi</dc:creator>
      <dc:date>2022-03-10T21:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate multiple column and add space and hyphen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-column-and-add-space-and-hyphen/m-p/801532#M315445</link>
      <description>&lt;P&gt;I think I figure out a simpler method using catx and cats. But if you have any other ideas, feel free to post and help whoever may look for an answer for the same question. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 22:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-column-and-add-space-and-hyphen/m-p/801532#M315445</guid>
      <dc:creator>Xiaoyi</dc:creator>
      <dc:date>2022-03-10T22:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate multiple column and add space and hyphen</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-column-and-add-space-and-hyphen/m-p/801537#M315450</link>
      <description>&lt;P&gt;If the source variables are numeric then you probably also want to use PUT() rather than just CATS() to convert them into strings.&amp;nbsp; That will make sure the strings used to represent the numbers use consistent style.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 22:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Concatenate-multiple-column-and-add-space-and-hyphen/m-p/801537#M315450</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-03-10T22:25:53Z</dc:date>
    </item>
  </channel>
</rss>

