<?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 JSL script for summary table with for loop in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-script-for-summary-table-with-for-loop/m-p/303469#M56027</link>
    <description>&lt;P&gt;Hello, I am creating a script for summary table with a for loop as there are multiple parameters from the PCM test. The script I have created was based on the JSL script generator and replace the mean () with colNames [i]. It did work but poped out 100s of data table for each parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously, I had a similar issue with the graphs and a gentleman replied with the solution nw = new window(). I tried this and it did not work so I tried dt_summary = new table() and did not work either. Can I have your advice on this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

// Get the all of the numeric, continuous column names
colNames = dt &amp;lt;&amp;lt; get column names( string, continuous );



nw = newtable (For( i = 1, i &amp;lt;= N Items( colNames ), i++, // N Items( colNames ), i++,
	
	// Mean value based on Wafer number and LotID
	
	dt&amp;lt;&amp;lt; Summary(
	Group( :WF_NUM),
	Mean( colNames[i] ),
	Freq( "None" ),
	Weight( "None" )	
)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:18:52 GMT</pubDate>
    <dc:creator>chungman89</dc:creator>
    <dc:date>2023-06-10T23:18:52Z</dc:date>
    <item>
      <title>JSL script for summary table with for loop</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-for-summary-table-with-for-loop/m-p/303469#M56027</link>
      <description>&lt;P&gt;Hello, I am creating a script for summary table with a for loop as there are multiple parameters from the PCM test. The script I have created was based on the JSL script generator and replace the mean () with colNames [i]. It did work but poped out 100s of data table for each parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously, I had a similar issue with the graphs and a gentleman replied with the solution nw = new window(). I tried this and it did not work so I tried dt_summary = new table() and did not work either. Can I have your advice on this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

// Get the all of the numeric, continuous column names
colNames = dt &amp;lt;&amp;lt; get column names( string, continuous );



nw = newtable (For( i = 1, i &amp;lt;= N Items( colNames ), i++, // N Items( colNames ), i++,
	
	// Mean value based on Wafer number and LotID
	
	dt&amp;lt;&amp;lt; Summary(
	Group( :WF_NUM),
	Mean( colNames[i] ),
	Freq( "None" ),
	Weight( "None" )	
)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:18:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-for-summary-table-with-for-loop/m-p/303469#M56027</guid>
      <dc:creator>chungman89</dc:creator>
      <dc:date>2023-06-10T23:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script for summary table with for loop</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-for-summary-table-with-for-loop/m-p/303491#M56029</link>
      <description>&lt;P&gt;There is not a need for a For() loop.&amp;nbsp; All of the means can simply be done at the same time&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

// Get the all of the numeric, continuous column names
colNames = dt &amp;lt;&amp;lt; get column names( string, continuous );
	
	// Mean value based on Wafer number and LotID
	
sumDT = dt &amp;lt;&amp;lt; Summary(
	Group( :WF_NUM ),
	Mean( colNames ),
	Freq( "None" ),
	Weight( "None" )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Sep 2020 13:13:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-for-summary-table-with-for-loop/m-p/303491#M56029</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-09T13:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script for summary table with for loop</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-for-summary-table-with-for-loop/m-p/303510#M56030</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for prompt response and simple solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 13:15:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-for-summary-table-with-for-loop/m-p/303510#M56030</guid>
      <dc:creator>chungman89</dc:creator>
      <dc:date>2020-09-09T13:15:50Z</dc:date>
    </item>
  </channel>
</rss>

