<?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 Combining multiple variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combining-multiple-variables/m-p/198791#M37266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm having a problem combining multiple variables into a single column (or perhaps more exactly, I think I want to concatenate the variables?)&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 14.0799999237061px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;.&amp;nbsp; I think I'm supposed to be using the catx function, but I keep getting a variety of syntax errors when I try.&amp;nbsp; I'd like to combine the 5 character code that exists in 25 different variables that are labeled DX1-DX25 into a new column called DXCOMBINED with a space between each value.&amp;nbsp; I'm so far stuck at catx (" ", dx1, dx2, dx3, ....dx25).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2015 23:48:02 GMT</pubDate>
    <dc:creator>out_of_my_wheelhouse</dc:creator>
    <dc:date>2015-08-13T23:48:02Z</dc:date>
    <item>
      <title>Combining multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-multiple-variables/m-p/198791#M37266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm having a problem combining multiple variables into a single column (or perhaps more exactly, I think I want to concatenate the variables?)&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 14.0799999237061px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;.&amp;nbsp; I think I'm supposed to be using the catx function, but I keep getting a variety of syntax errors when I try.&amp;nbsp; I'd like to combine the 5 character code that exists in 25 different variables that are labeled DX1-DX25 into a new column called DXCOMBINED with a space between each value.&amp;nbsp; I'm so far stuck at catx (" ", dx1, dx2, dx3, ....dx25).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 23:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-multiple-variables/m-p/198791#M37266</guid>
      <dc:creator>out_of_my_wheelhouse</dc:creator>
      <dc:date>2015-08-13T23:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Combining multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-multiple-variables/m-p/198792#M37267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks fine to me. Please give an example. What do the error messages say? - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-multiple-variables/m-p/198792#M37267</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-08-14T18:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Combining multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-multiple-variables/m-p/198793#M37268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the code in a data step looks like:&lt;/P&gt;&lt;P&gt;DXCombined = catx(" ", dx1, dx2, dx3, ..., dx25);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;( catx(" ", dx1, dx2, dx3, ..., dx25) ) as DXCombined in proc sql&lt;/P&gt;&lt;P&gt;then I wouldn't expect an error.&lt;/P&gt;&lt;P&gt;It could be that the error is arising from something earlier in the program code.&lt;/P&gt;&lt;P&gt;Post the errors from the log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-multiple-variables/m-p/198793#M37268</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-08-14T18:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Combining multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-multiple-variables/m-p/198794#M37269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for ease of coding and simplicity, this variation should work (although I can't test it today):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dxcombined = catx(' ', of dx1-dx25);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-multiple-variables/m-p/198794#M37269</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-08-14T18:22:42Z</dc:date>
    </item>
  </channel>
</rss>

