<?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: Problem with grouping columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Problem-with-grouping-columns/m-p/78558#M36462</link>
    <description>&lt;P&gt;I found the problem: The problem is that I've tried to concatenate a "string" with an : operator. This is not possible. The way to do it is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;g_list[j] = dt &amp;lt;&amp;lt; Group Columns(:(test_list[j] || "_" || s_list[1]), Length(s_list));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Oct 2018 12:57:25 GMT</pubDate>
    <dc:creator>axcelenator1</dc:creator>
    <dc:date>2018-10-10T12:57:25Z</dc:date>
    <item>
      <title>Problem with grouping columns</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-with-grouping-columns/m-p/78538#M36444</link>
      <description>&lt;P&gt;Hello, I have some JSL code which includes double loop and a the end of the code includes a line which i want to group the columns but it doesn't do that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How can I fix the code?&lt;/P&gt;&lt;P&gt;2. When running the script is any way that the new table opens will be another one and not the original table? I mean I want another file will be opened..&lt;BR /&gt;&lt;BR /&gt;The code and table are attached:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("C:\JMPCommunity\DataTableExample.jmp");

s_list = {sen1, sen2, sen3, sen4, sen5};
test_list ={test1, test2, test3};
tokens_list={Col1, Col2, Col3};
g_list={g1,g2,g3};

For(j = 1, j&amp;lt;=Length(test_list), j++,
	For( i = 1, i&amp;lt;= Length(s_list), i++, 
	    dt &amp;lt;&amp;lt; New Column  ( test_list[j] ||"_" || s_list[i],  
		Numeric,
		Continuous,
		Formula(
				Num(Word( i, As Column(Column(tokens_list[j] )), "|" ))
			    )
		)
				
	);
	g_list[j] = dt &amp;lt;&amp;lt; Group Columns(":" || test_list[j]|| "_" || s_list[1], Length(s_list))
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 10:03:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-with-grouping-columns/m-p/78538#M36444</guid>
      <dc:creator>axcelenator1</dc:creator>
      <dc:date>2018-10-10T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with grouping columns</title>
      <link>https://community.jmp.com/t5/Discussions/Problem-with-grouping-columns/m-p/78558#M36462</link>
      <description>&lt;P&gt;I found the problem: The problem is that I've tried to concatenate a "string" with an : operator. This is not possible. The way to do it is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;g_list[j] = dt &amp;lt;&amp;lt; Group Columns(:(test_list[j] || "_" || s_list[1]), Length(s_list));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Oct 2018 12:57:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Problem-with-grouping-columns/m-p/78558#M36462</guid>
      <dc:creator>axcelenator1</dc:creator>
      <dc:date>2018-10-10T12:57:25Z</dc:date>
    </item>
  </channel>
</rss>

