<?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: Script auto run all selected subset in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286637#M55321</link>
    <description>&lt;P&gt;FYI when subsetting you can assign your subset tables as a list rather than using N Table() which could be problematic if you have a bunch of other tables open (typically including the original table subset from).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Perform the subsets
listDT = dt &amp;lt;&amp;lt; Subset(
	By( :age ),
	All rows,
	Selected columns only( 0 ),
	columns( :name, :sex, :height, :weight )
);

// Loop across all new data tables and run Fit Y by X
For( i = 1, i &amp;lt;= N Items( listDT ), i++,
	listDT[i] &amp;lt;&amp;lt; Bivariate( Y( :height ), X( :weight ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Aug 2020 04:23:47 GMT</pubDate>
    <dc:creator>ts2</dc:creator>
    <dc:date>2020-08-19T04:23:47Z</dc:date>
    <item>
      <title>Script auto run all selected subset</title>
      <link>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286546#M55304</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any possibility to run all subset column by name which consist of more than 50 name automatically at the same time?&lt;/P&gt;&lt;P&gt;when I did subset by name, i get all those detail data I want, but I need to click one by one to run fit y by x analysis. is there is a way for me to select all and automatically run fit y by x analysis? all of this subset name might changes everytime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="tikhahabusamah_0-1597773191628.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26272i7A3813FA54953E89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tikhahabusamah_0-1597773191628.png" alt="tikhahabusamah_0-1597773191628.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:18:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286546#M55304</guid>
      <dc:creator>tikhahabusamah</dc:creator>
      <dc:date>2023-06-10T23:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script auto run all selected subset</title>
      <link>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286573#M55307</link>
      <description>&lt;P&gt;Here is a little script that shows and example of one way to do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Get the current number of data tables
numDT = N Table();

// Perform the subsets
dt &amp;lt;&amp;lt; Subset(
	By( :age ),
	All rows,
	Selected columns only( 0 ),
	columns( :name, :sex, :height, :weight )
);

// Loop across all new data tables and run Fit Y by X
For( i = 1, i &amp;lt;= N Table() - numDT, i++,
	Data Table( i ) &amp;lt;&amp;lt; Bivariate( Y( :height ), X( :weight ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Aug 2020 18:21:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286573#M55307</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-18T18:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script auto run all selected subset</title>
      <link>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286598#M55314</link>
      <description>&lt;P&gt;I try to did split by name after subset, which is before run table fit Y by X, but everytime I try to run JMP become not responding anymore. why?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Get the current number of data tables
numDT = N Table();

// Perform the subsets
dt &amp;lt;&amp;lt; Subset( By( :age ), All rows, Selected columns only( 0 ), columns( :name, :sex, :height, :weight ) );

// Loop across all new data tables and run Fit Y by X
For( i = 1, i &amp;lt;= N Table() - numDT, i++,
    Data Table( i ) &amp;lt;&amp;lt; Split( Split By( :name ), Split( :sex, :height, :weight ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Aug 2020 12:23:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286598#M55314</guid>
      <dc:creator>tikhahabusamah</dc:creator>
      <dc:date>2020-08-19T12:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script auto run all selected subset</title>
      <link>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286600#M55315</link>
      <description>&lt;P&gt;The issue is the stopping value for your For() loop.&amp;nbsp; You are specifying&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= N Table() - numDT, i++,&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then in your code you are creating a new data table, so the next time the loop happens, the value of&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;N Table()&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;has increased by an additional count, so the variable 'i' can never get to the current value of N Table()&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 21:58:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286600#M55315</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-18T21:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script auto run all selected subset</title>
      <link>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286637#M55321</link>
      <description>&lt;P&gt;FYI when subsetting you can assign your subset tables as a list rather than using N Table() which could be problematic if you have a bunch of other tables open (typically including the original table subset from).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Perform the subsets
listDT = dt &amp;lt;&amp;lt; Subset(
	By( :age ),
	All rows,
	Selected columns only( 0 ),
	columns( :name, :sex, :height, :weight )
);

// Loop across all new data tables and run Fit Y by X
For( i = 1, i &amp;lt;= N Items( listDT ), i++,
	listDT[i] &amp;lt;&amp;lt; Bivariate( Y( :height ), X( :weight ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Aug 2020 04:23:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286637#M55321</guid>
      <dc:creator>ts2</dc:creator>
      <dc:date>2020-08-19T04:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script auto run all selected subset</title>
      <link>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286645#M55324</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19995"&gt;@tikhahabusamah&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remove my solution (&amp;nbsp;@txnelson ) and select&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5193"&gt;@ts2&lt;/a&gt;&amp;nbsp; as the solution.&amp;nbsp; It is a better solution!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 07:00:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-auto-run-all-selected-subset/m-p/286645#M55324</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-19T07:00:58Z</dc:date>
    </item>
  </channel>
</rss>

