<?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 use JSL to generate control chart and save the scripts in data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-generate-control-chart-and-save-the-scripts-in/m-p/67232#M34568</link>
    <description>&lt;P&gt;I was trying&amp;nbsp;to generate the control chart and save the lengthythe script to the data table at the same time. The control chart script is lengthy. So instead of doing copy &amp;amp; paste the long script shown below is there a&amp;nbsp;sophisticated way to do it?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any help appreciated.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
Control Chart(
SendToByGroup( {:group == "A"} ),...
....
);
dt &amp;lt;&amp;lt; New Script(
"Control Chart by weight",
Control Chart(
SendToByGroup( {:group == "A"} ),...
...
);
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Aug 2018 19:18:13 GMT</pubDate>
    <dc:creator>midori555</dc:creator>
    <dc:date>2018-08-08T19:18:13Z</dc:date>
    <item>
      <title>How to use JSL to generate control chart and save the scripts in data table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-generate-control-chart-and-save-the-scripts-in/m-p/67232#M34568</link>
      <description>&lt;P&gt;I was trying&amp;nbsp;to generate the control chart and save the lengthythe script to the data table at the same time. The control chart script is lengthy. So instead of doing copy &amp;amp; paste the long script shown below is there a&amp;nbsp;sophisticated way to do it?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any help appreciated.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
Control Chart(
SendToByGroup( {:group == "A"} ),...
....
);
dt &amp;lt;&amp;lt; New Script(
"Control Chart by weight",
Control Chart(
SendToByGroup( {:group == "A"} ),...
...
);
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 19:18:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-generate-control-chart-and-save-the-scripts-in/m-p/67232#M34568</guid>
      <dc:creator>midori555</dc:creator>
      <dc:date>2018-08-08T19:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to generate control chart and save the scripts in data table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-generate-control-chart-and-save-the-scripts-in/m-p/67265#M34577</link>
      <description>&lt;P&gt;You can save the script right with the generation of the Control Chart.&amp;nbsp; Here is the example from the Scripting Index that shows you how you can do it.&amp;nbsp; You can do the same with the code you displayed, without having to do a separate step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open(
	"$SAMPLE_DATA/Quality Control/Coating.jmp"
);
obj = Control Chart(
	Sample Size( 1 ),
	Chart Col( :Weight ),
	Chart Type( Run Chart )
);
obj &amp;lt;&amp;lt;
Save Script to Data Table(
	"My Analysis",
	&amp;lt;&amp;lt;Prompt( 0 ),
	&amp;lt;&amp;lt;Replace( 0 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Aug 2018 23:21:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-generate-control-chart-and-save-the-scripts-in/m-p/67265#M34577</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-08T23:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to generate control chart and save the scripts in data table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-generate-control-chart-and-save-the-scripts-in/m-p/68413#M34825</link>
      <description>&lt;P&gt;In my original control charts I had "SendToByGroup(...." as part of the scripts.&lt;/P&gt;
&lt;P&gt;If I do the following each plot is saved individually resulting in tens of scripts. Is there a way to fix it? Appreciated!&lt;/P&gt;
&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;obj &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt;Save Script to Data Table&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;
	&lt;SPAN class="token string"&gt;"My Analysis"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;
	&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt;Prompt&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;0&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;
	&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt;Replace&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;0&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture-3.JPG" style="width: 219px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12079i39EB3E4E176925BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture-3.JPG" alt="Capture-3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:04:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-generate-control-chart-and-save-the-scripts-in/m-p/68413#M34825</guid>
      <dc:creator>midori555</dc:creator>
      <dc:date>2018-08-17T14:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to generate control chart and save the scripts in data table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-generate-control-chart-and-save-the-scripts-in/m-p/68520#M34865</link>
      <description>&lt;P&gt;You need to use the command Save By Group script to data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");
obj=dt&amp;lt;&amp;lt;Control Chart(
 Sample Label( :age ),
 KSigma( 3 ),
 Chart Col( :height, XBar, R ),
 By( :sex )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;obj[1]&amp;lt;&amp;lt;Save By Group script to data table;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:00:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-generate-control-chart-and-save-the-scripts-in/m-p/68520#M34865</guid>
      <dc:creator>tonya_mauldin</dc:creator>
      <dc:date>2018-08-17T14:00:58Z</dc:date>
    </item>
  </channel>
</rss>

