<?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: Stop JMP from trimming whitespace in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Stop-JMP-from-trimming-whitespace/m-p/408088#M65802</link>
    <description>&lt;P&gt;I'm not sure an option to force this behaviour exists, but that may be my fault.&lt;/P&gt;
&lt;P&gt;But if you are 'putting' values into cells with some other JSL you might be able to use an 'Expression column" to persist values:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt =
New Table( "Trailing White Space",
	Add Rows( 2 ),
	New Column( "String",
		Character,
		"Nominal",
		Set Values( {"", ""} ),
		Set Display Width( 96 )
	),
	New Column( "Expression String",
		Expression,
		"None",
		Set Values( {Empty(), Empty()} )
	)
);

Wait(3);
txt1 = "Text";
txt2 = "Text    ";
Column(dt, 1)[1] = txt1;
Column(dt, 2)[1] = txt1;
Column(dt, 1)[2] = txt2;
Column(dt, 2)[2] = txt2;

for(r=1, r&amp;lt;=NRow(dt), r++, Print(Length(Column(dt, 1)[r]), Length(Column(dt, 2)[r])));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Having stored values this way, the usefulness of this approach will also depend on what happens next.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 14:17:51 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2021-08-09T14:17:51Z</dc:date>
    <item>
      <title>Stop JMP from trimming whitespace</title>
      <link>https://community.jmp.com/t5/Discussions/Stop-JMP-from-trimming-whitespace/m-p/408049#M65798</link>
      <description>&lt;P&gt;If I put a text string with trailing whitespace in a character column of a data table it appears that JMP automatically trims that whitespace away. Is there any way of preventing that from happening?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:34:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Stop-JMP-from-trimming-whitespace/m-p/408049#M65798</guid>
      <dc:creator>JPKO</dc:creator>
      <dc:date>2023-06-10T23:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stop JMP from trimming whitespace</title>
      <link>https://community.jmp.com/t5/Discussions/Stop-JMP-from-trimming-whitespace/m-p/408088#M65802</link>
      <description>&lt;P&gt;I'm not sure an option to force this behaviour exists, but that may be my fault.&lt;/P&gt;
&lt;P&gt;But if you are 'putting' values into cells with some other JSL you might be able to use an 'Expression column" to persist values:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

dt =
New Table( "Trailing White Space",
	Add Rows( 2 ),
	New Column( "String",
		Character,
		"Nominal",
		Set Values( {"", ""} ),
		Set Display Width( 96 )
	),
	New Column( "Expression String",
		Expression,
		"None",
		Set Values( {Empty(), Empty()} )
	)
);

Wait(3);
txt1 = "Text";
txt2 = "Text    ";
Column(dt, 1)[1] = txt1;
Column(dt, 2)[1] = txt1;
Column(dt, 1)[2] = txt2;
Column(dt, 2)[2] = txt2;

for(r=1, r&amp;lt;=NRow(dt), r++, Print(Length(Column(dt, 1)[r]), Length(Column(dt, 2)[r])));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Having stored values this way, the usefulness of this approach will also depend on what happens next.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 14:17:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Stop-JMP-from-trimming-whitespace/m-p/408088#M65802</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-08-09T14:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stop JMP from trimming whitespace</title>
      <link>https://community.jmp.com/t5/Discussions/Stop-JMP-from-trimming-whitespace/m-p/408275#M65820</link>
      <description>&lt;P&gt;Something very similar to this behavior as bugged me for a while, I just submitted this wish list item which you might find useful:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-MESSAGE title="Retain data when column data type is changed" uid="408272" url="https://community.jmp.com/t5/JMP-Wish-List/Retain-data-when-column-data-type-is-changed/m-p/408272#U408272" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL id="list" class="lia-list-standard-inline" role="list"&gt;
&lt;LI class="lia-breadcrumb-node crumb final-crumb"&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 10 Aug 2021 12:11:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Stop-JMP-from-trimming-whitespace/m-p/408275#M65820</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-08-10T12:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stop JMP from trimming whitespace</title>
      <link>https://community.jmp.com/t5/Discussions/Stop-JMP-from-trimming-whitespace/m-p/408287#M65821</link>
      <description>&lt;P&gt;Thanks Ian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize now that it would probably have been helpful with a bit more context: The character data I am filling into the table are user inputs I retrieve from a database with a SQL query. I am using the retrieved values to dynamically create a new query, but because the whitespaces are trimmed, the value in my table no longer matches the values in the database. I suspect that this behavior is also the reason why I cannot use the filter prompt in the Query Builder platform to filter for rows with trailing whitespace - in that case the query result is simply empty. Note that I have no problem hard coding a WHERE clause that matches the rows in question, and that I can also use the below to match all rows with trailing whitespace. However, as soon as the data is in a JMP table, the whitespace is gone.&lt;/P&gt;&lt;PRE&gt;"SELECT * 
FROM schema.table
WHERE RIGHT(column, 1) = ' ';"&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Aug 2021 13:26:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Stop-JMP-from-trimming-whitespace/m-p/408287#M65821</guid>
      <dc:creator>JPKO</dc:creator>
      <dc:date>2021-08-10T13:26:16Z</dc:date>
    </item>
  </channel>
</rss>

