<?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 How to split a 500-character long string into 500 columns, one char per column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665755#M85407</link>
    <description>&lt;P&gt;Is there a simple way to split a column containing 500-character long string into 500 columns, one char per column?&lt;/P&gt;&lt;P&gt;I am using JMP17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP2021_0-1691175815948.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55581i8AC3C51B5A8DEEFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMP2021_0-1691175815948.png" alt="JMP2021_0-1691175815948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 19:04:26 GMT</pubDate>
    <dc:creator>JMP2021</dc:creator>
    <dc:date>2023-08-04T19:04:26Z</dc:date>
    <item>
      <title>How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665755#M85407</link>
      <description>&lt;P&gt;Is there a simple way to split a column containing 500-character long string into 500 columns, one char per column?&lt;/P&gt;&lt;P&gt;I am using JMP17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP2021_0-1691175815948.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55581i8AC3C51B5A8DEEFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMP2021_0-1691175815948.png" alt="JMP2021_0-1691175815948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 19:04:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665755#M85407</guid>
      <dc:creator>JMP2021</dc:creator>
      <dc:date>2023-08-04T19:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665785#M85408</link>
      <description>&lt;P&gt;Try something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
dt = Current Data Table();

dt &amp;lt;&amp;lt; Begin data update;
For( j = 1, j &amp;lt;= N Rows( dt ), j++, 

	For( i = 1, i &amp;lt;= 500, i++, //you might want to use length of the string than 500
	
	
		dt &amp;lt;&amp;lt; New Column( Word( i, Column( dt, 1 )[j], "" ) )
	)
);
dt &amp;lt;&amp;lt; End data update;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Aug 2023 19:22:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665785#M85408</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-08-04T19:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665786#M85409</link>
      <description>&lt;P&gt;Here is a little different approach to the problem.&amp;nbsp; It uses some built in JMP functions that might prove to be faster than&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17878"&gt;@Jackie_&lt;/a&gt;&amp;nbsp;approach.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
// Create a new column that has a delimiter between each character
dt &amp;lt;&amp;lt; New Column( "Char",
	character,
	set each value(
		x = Words( As Column( 1 ), "" );
		Concat Items( x, "`" );
	)
);
// Use Text to Columns to create the new columns and populate them
dt &amp;lt;&amp;lt; text to columns( columns( char ), delimiters( "`" ) );
// Cleanup the table
dt &amp;lt;&amp;lt; delete columns( char );
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Aug 2023 19:52:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665786#M85409</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-08-04T19:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665794#M85410</link>
      <description>&lt;P&gt;I am new to scripting. Is there a way to specify which column to perform this split char?&lt;/P&gt;&lt;P&gt;RIght now I delete all the other columns and only leave the one column that contains the long string. IT worked wonderfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:12:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665794#M85410</guid>
      <dc:creator>JMP2021</dc:creator>
      <dc:date>2023-08-04T20:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665795#M85411</link>
      <description>&lt;P&gt;My JMP is not responding when I try your scripts. IT probably because that my table is large. I guess it will work for a smaller table.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:15:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665795#M85411</guid>
      <dc:creator>JMP2021</dc:creator>
      <dc:date>2023-08-04T20:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665797#M85412</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP2021_0-1691180153232.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55582iF86A82EC8E695281/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMP2021_0-1691180153232.png" alt="JMP2021_0-1691180153232.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:16:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665797#M85412</guid>
      <dc:creator>JMP2021</dc:creator>
      <dc:date>2023-08-04T20:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665798#M85413</link>
      <description>&lt;P&gt;never mind. I only need to put that column as the 1st column in a table. Thank you very much for your help&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:22:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665798#M85413</guid>
      <dc:creator>JMP2021</dc:creator>
      <dc:date>2023-08-04T20:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665799#M85414</link>
      <description>&lt;P&gt;In the JSL I provided, the column to use to separate into multiple columns is referenced as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;As Column( 1 )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This specifies for the Words() function to use the first column in the data table to do the separation of characters on.&amp;nbsp; The numeric value can be changed to point to whatever column number one wants.&amp;nbsp; The column number can also be changed to the actual column name.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;as column( "the column name" )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Aug 2023 20:25:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665799#M85414</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-08-04T20:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665958#M85422</link>
      <description>&lt;P&gt;All the answers you got so far were good. but there is another non scripting option.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;yet, the text to cols add in works just fine&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/JMP-Add-Ins/Text-to-Columns-Version-3/ta-p/21621" target="_blank"&gt;https://community.jmp.com/t5/JMP-Add-Ins/Text-to-Columns-Version-3/ta-p/21621&lt;/A&gt;&lt;BR /&gt;just leave the delimiter empty and it will split each letter into a new column with just 3 clicks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for some reason, using the built in text to columns from the cols &amp;gt;&amp;gt; utilities &amp;gt;&amp;gt; text to columns... will not work without a separator&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2023 13:29:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665958#M85422</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2023-08-06T13:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to split a 500-character long string into 500 columns, one char per column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665988#M85424</link>
      <description>&lt;P&gt;Thank you so much. This is so easy to use. wonderful trick to know!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 01:08:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-split-a-500-character-long-string-into-500-columns-one/m-p/665988#M85424</guid>
      <dc:creator>JMP2021</dc:creator>
      <dc:date>2023-08-07T01:08:09Z</dc:date>
    </item>
  </channel>
</rss>

