<?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: CATX with List Containing Missing Variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CATX-with-List-Containing-Missing-Variables/m-p/652425#M195869</link>
    <description>&lt;P&gt;I can not reproduce your problem with trailing missing character variables (a blank for the rightmost variable(s)).&amp;nbsp; So if CATX is showing a trailing " .", then your rightmost non-blank character variable must have a character "." in it.&amp;nbsp; Or maybe the rightmost variable is a numeric with a missing value.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jun 2020 04:09:06 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2020-06-02T04:09:06Z</dc:date>
    <item>
      <title>CATX with List Containing Missing Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CATX-with-List-Containing-Missing-Variables/m-p/652420#M195865</link>
      <description>&lt;P&gt;I am trying to use CATX() to concatenate lists of character variables of within a dataset, each of which contains a different number of missing variables on the right end. I am getting them concatenated successfully, but all of the lists are ending with , . (the separator and then a dot). I am trying to get rid of this, but can't seem to figure out a way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data sport_part_report;
	set all_schools_sport_t;
  	sports = catx(", ", OF col1-col14);
  	drop school_id _name_ _label_ col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14;
run;&lt;/PRE&gt;&lt;P&gt;Output example:&lt;/P&gt;&lt;PRE&gt;BA-M, LA-W, SB-W, .&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 03:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CATX-with-List-Containing-Missing-Variables/m-p/652420#M195865</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-06-02T03:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: CATX with List Containing Missing Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CATX-with-List-Containing-Missing-Variables/m-p/652422#M195866</link>
      <description>&lt;P&gt;From the looks of it input table&amp;nbsp;&lt;EM&gt;all_schools_sport_t&lt;/EM&gt; gets created via a Proc Transpose and all your COL variables are now character.&lt;/P&gt;
&lt;P&gt;Because they are character the dot is an actual value and though gets used by the CATX() function (which omits missing variables).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What should resolve this: Use OPTION MISSING=' '; before your Proc Transpose. This should populate the COL variable with a blank instead of a dot and then the CATX() function will treat it as missing.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 04:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CATX-with-List-Containing-Missing-Variables/m-p/652422#M195866</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-06-02T04:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: CATX with List Containing Missing Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CATX-with-List-Containing-Missing-Variables/m-p/652423#M195867</link>
      <description>&lt;P&gt;Thanks. I received this code from a partner and realized after posting that they had indicated more columns than actually existed. When I removed that, the issue went away. This is helpful to know as well, however.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 04:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CATX-with-List-Containing-Missing-Variables/m-p/652423#M195867</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-06-02T04:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: CATX with List Containing Missing Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CATX-with-List-Containing-Missing-Variables/m-p/652425#M195869</link>
      <description>&lt;P&gt;I can not reproduce your problem with trailing missing character variables (a blank for the rightmost variable(s)).&amp;nbsp; So if CATX is showing a trailing " .", then your rightmost non-blank character variable must have a character "." in it.&amp;nbsp; Or maybe the rightmost variable is a numeric with a missing value.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 04:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CATX-with-List-Containing-Missing-Variables/m-p/652425#M195869</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-06-02T04:09:06Z</dc:date>
    </item>
  </channel>
</rss>

