<?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 Column concatenation only takes some column entries in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-concatenation-only-takes-some-column-entries/m-p/400008#M65116</link>
    <description>&lt;P&gt;I have a sample file taken from a Covid report on reopening file dining that was originally presented as a two column journal article.&amp;nbsp; The PDF tool brought in the file as illustrated in&amp;nbsp; columns 3 and 5 of "To-dineornot_test.jmp."&amp;nbsp; The script was copied from an exchange in the Community.&amp;nbsp; I changed the names of the columns. In the file "Column D" is the result of the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find that the concatenate operator worked ONLY on lines 3 and 9.&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;On inspection, the cells all seem to be text. They may not be perfect renditions of the original 2 column PDF, but they are close enough.&amp;nbsp; I do not want to miss the material that did not get concatenated properly.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:33:38 GMT</pubDate>
    <dc:creator>LNitz</dc:creator>
    <dc:date>2023-06-10T23:33:38Z</dc:date>
    <item>
      <title>Column concatenation only takes some column entries</title>
      <link>https://community.jmp.com/t5/Discussions/Column-concatenation-only-takes-some-column-entries/m-p/400008#M65116</link>
      <description>&lt;P&gt;I have a sample file taken from a Covid report on reopening file dining that was originally presented as a two column journal article.&amp;nbsp; The PDF tool brought in the file as illustrated in&amp;nbsp; columns 3 and 5 of "To-dineornot_test.jmp."&amp;nbsp; The script was copied from an exchange in the Community.&amp;nbsp; I changed the names of the columns. In the file "Column D" is the result of the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find that the concatenate operator worked ONLY on lines 3 and 9.&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;On inspection, the cells all seem to be text. They may not be perfect renditions of the original 2 column PDF, but they are close enough.&amp;nbsp; I do not want to miss the material that did not get concatenated properly.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:33:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-concatenation-only-takes-some-column-entries/m-p/400008#M65116</guid>
      <dc:creator>LNitz</dc:creator>
      <dc:date>2023-06-10T23:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Column concatenation only takes some column entries</title>
      <link>https://community.jmp.com/t5/Discussions/Column-concatenation-only-takes-some-column-entries/m-p/400027#M65117</link>
      <description>&lt;P&gt;The issue is that you have Carriage Return and New Line characters imbedded in your column 3.&amp;nbsp; If you drag the row boundary and make each cell a multiple line cell, you will see the characters that are following lines&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1625959694893.png" style="width: 610px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34065i60AA26B8CFAACC7C/image-dimensions/610x276?v=v2" width="610" height="276" role="button" title="txnelson_0-1625959694893.png" alt="txnelson_0-1625959694893.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The hex values that are causing the issue are 0A and 0D.&amp;nbsp; Below is a little piece of code that will remove the values.&amp;nbsp; It will leave in the place of the 0A a blank space, but not for 0D.&amp;nbsp; The reasoning behind this, is that they always appear together, and only one blank space is needed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
For( k = 1, k &amp;lt;= N Rows( dt ), k++,
	value = "";
	For( i = 1, i &amp;lt;= Length( :column 3[k] ), i++,
		If(
			Char To Hex( Substr( :column 3[k], i, 1 ) ) ==
			"0A", value = value || " ",
			Char To Hex( Substr( :column 3[k], i, 1 ) ) !=
			"0D",
				value = value || Substr( :column 3[k], i, 1 )
		)
	);
	:column 3[k] = value;
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jul 2021 23:45:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-concatenation-only-takes-some-column-entries/m-p/400027#M65117</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-10T23:45:55Z</dc:date>
    </item>
  </channel>
</rss>

