<?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 unrecognized as table argument in access For loop in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/unrecognized-as-table-argument-in-access-For-loop/m-p/780140#M96183</link>
    <description>&lt;P&gt;I am trying to concatenate my subset tables, but I kept getting this error:&lt;BR /&gt;unrecognized as table argument in access or evaluation of 'dtSubsetList [ /*###*/i]' , dtSubsetList [/*###*/i]&lt;/P&gt;&lt;P&gt;Im using JMP 16&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;names default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dtSubsetList = dt &amp;lt;&amp;lt; Subset(
	By( :sex ),
	All rows,
	Selected columns only( 0 ),
	columns( :name, :age, :height, :weight )
);

dtNew = New Table( "New Table" );
 
For(i = 1, i &amp;lt;= N Items(dtSubsetList ), i++, 
dtNew &amp;lt;&amp;lt; Concatenate(dtSubsetList[i], Append to first table(1)); 
);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2024 02:04:30 GMT</pubDate>
    <dc:creator>UserID16644</dc:creator>
    <dc:date>2024-08-08T02:04:30Z</dc:date>
    <item>
      <title>unrecognized as table argument in access For loop</title>
      <link>https://community.jmp.com/t5/Discussions/unrecognized-as-table-argument-in-access-For-loop/m-p/780140#M96183</link>
      <description>&lt;P&gt;I am trying to concatenate my subset tables, but I kept getting this error:&lt;BR /&gt;unrecognized as table argument in access or evaluation of 'dtSubsetList [ /*###*/i]' , dtSubsetList [/*###*/i]&lt;/P&gt;&lt;P&gt;Im using JMP 16&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;names default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dtSubsetList = dt &amp;lt;&amp;lt; Subset(
	By( :sex ),
	All rows,
	Selected columns only( 0 ),
	columns( :name, :age, :height, :weight )
);

dtNew = New Table( "New Table" );
 
For(i = 1, i &amp;lt;= N Items(dtSubsetList ), i++, 
dtNew &amp;lt;&amp;lt; Concatenate(dtSubsetList[i], Append to first table(1)); 
);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 02:04:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/unrecognized-as-table-argument-in-access-For-loop/m-p/780140#M96183</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2024-08-08T02:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: unrecognized as table argument in access For loop</title>
      <link>https://community.jmp.com/t5/Discussions/unrecognized-as-table-argument-in-access-For-loop/m-p/780152#M96185</link>
      <description>&lt;P&gt;I am unable to replicate the issue.&amp;nbsp; Your script runs properly without error.&lt;/P&gt;
&lt;P&gt;I suggest that you exit JMP, and then reopen it and then run the script.&amp;nbsp; Your dt_Test is obviously not in the JSL you provided, and is probably an artifact of all of the trial and errors you have attempted.&lt;/P&gt;
&lt;P&gt;I will also suggest a change to your code.&amp;nbsp; The Concatenate platform has the ability to concatenate more than one table in a single execution.&amp;nbsp; Therefore you can actually past the complete list of data table to the Concatenation rather than having to loop through each one separatly.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dtSubsetList = dt &amp;lt;&amp;lt; Subset(
	By( :sex ),
	All rows,
	Selected columns only( 0 ),
	columns( :name, :age, :height, :weight )
);

dtNew = New Table( "New Table" );
 
/*For( i = 1, i &amp;lt;= N Items( dtSubsetList ), i++,
	dtNew &amp;lt;&amp;lt; Concatenate( dtSubsetList[i], Append to first table( 1 ) )
);*/

dtNew &amp;lt;&amp;lt; Concatenate( dtSubsetList, Append to first table( 1 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Aug 2024 01:48:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/unrecognized-as-table-argument-in-access-For-loop/m-p/780152#M96185</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-08-08T01:48:25Z</dc:date>
    </item>
  </channel>
</rss>

