<?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: How can I create a JSL script for saving a graph to the data table. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/577533#M78504</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thank you so much, this is exactly what I want. You are the best!!!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 17:27:00 GMT</pubDate>
    <dc:creator>lazzybug</dc:creator>
    <dc:date>2022-12-05T17:27:00Z</dc:date>
    <item>
      <title>How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19820#M18065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scheduled script running daily which saves out a data table.&lt;/P&gt;&lt;P&gt;However I would like to include graphs which I can do manually and save to data table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there away of putting this into the script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 16:55:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19820#M18065</guid>
      <dc:creator>ivan_j_moore</dc:creator>
      <dc:date>2016-08-08T16:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19821#M18066</link>
      <description>&lt;P&gt;You just need to use the New Script message.&amp;nbsp; Here is the simple example from:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Script(
       "New Script",
       Distribution( Column( :Height, :Weight ), By( :sex ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:57:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19821#M18066</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-26T17:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19822#M18067</link>
      <description>&lt;P&gt;From your request, it is difficult to determine if you are wanting to (1) use the JMP 12 feature to add the graphs as an expression column;&amp;nbsp; or (2) you would like to embed a journal file of graphs; or (3) add a script to generate the graphs.&amp;nbsp; Jim Nelson provided an example for #3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example code below uses the JMP sample data of SAT scores, creates a summary report of SAT Math and Verbal scores by State, and for each State embeds an Overlay trend plot in an expression column for the corresponding row, and makes the expression column a label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It also includes using Graph Builder to provide an example usage of this table.&amp;nbsp; Hover over a State and see the trend plot. This is an example for #1. If you are looking for an example for #2, or something else, please provide more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtraw = Open("$sample_data\SATByYear.jmp");
ovl = Overlay Plot(
       X( :Year ),
       Y( :SAT Verbal, :SAT Math ),
       Y Scale( Left, Right ),
       Connect Thru Missing( 1 ),
       By( :State ),
       SendToReport(
             Dispatch( {}, "Overlay Plot Graph", FrameBox, {Frame Size( 288, 158 )} ),
             Dispatch(
                    {},
                    "Overlay Plot Graph",
                    FrameBox( 2 ),
                    {Frame Size( 288, 158 )}
             )
       )
);
 
dtsumry = dtraw &amp;lt;&amp;lt; Summary(
       Group( :State ),
       Mean( :SAT Verbal ),
       Mean( :SAT Math ),
       Freq( "None" ),
       Weight( "None" )
);
 
dtsumry &amp;lt;&amp;lt; new Column("ByYearPic", Expression);
 
for(i=1, i&amp;lt;=nitems(ovl), i++,
  ttl = report(ovl[i])[OutlineBox(1)] &amp;lt;&amp;lt; get title();
  report(ovl[i])[OutlineBox(1)] &amp;lt;&amp;lt; set title(word(2,ttl, "=") || " Scores by Year");
  pic = ovl[i] &amp;lt;&amp;lt;get picture;
  column(dtsumry, "ByYearPic")[i] = pic;     
);
 
column(dtsumry, "ByYearPic")&amp;lt;&amp;lt;label(1);
 
ovl&amp;lt;&amp;lt; close window();
 
New window("View", VListBox(
       Graph Builder(
       Level Spacing Color( "Medium Light Gray" ),
       Graph Spacing( 6 ),
       Variables( Color( :Name( "Mean(SAT Verbal)" ) ), Shape( :State ) ),
       Elements( Map Shapes( Legend( 6 ) ) ),
       show control panel(0)
),
Graph Builder(
       Level Spacing Color( "Medium Light Gray" ),
       Graph Spacing( 6 ),
       Variables( Color( :Name( "Mean(SAT Math)" ) ), Shape( :State ) ),
       Elements( Map Shapes( Legend( 6 ) ) ),
       Show control panel(0)
)
  ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:58:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19822#M18067</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-06-26T17:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19823#M18068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for making it not very clear what I am asking, I will try and go through this step by step here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I have a scheduled script running daily which saves out a data table, no problems here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In the data table, manually or using script I create a "graph", &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then manually I can for that "graph" -&amp;nbsp; "Save the script to data table" which then saves the graph to the data table, then when the data table is saved and then opened again the script can be easily opened / Ran. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is can this be scripted before saving the data table and is the "New script" option the way of doing this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12392_Image.jpg" style="width: 438px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/3561i3C7BD9D221243A96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12392_Image.jpg" alt="12392_Image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 03:43:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19823#M18068</guid>
      <dc:creator>ivan_j_moore</dc:creator>
      <dc:date>2016-10-19T03:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19824#M18069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct, &lt;A href="https://community.jmp.com/people/txnelson"&gt;txnelson&lt;/A&gt;​'s example of New Script accomplishes just that. &lt;A href="https://community.jmp.com/people/gzmorgan0"&gt;gzmorgan0&lt;/A&gt;​​ presents and interesting alternative to including graphs with datatables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 11:44:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19824#M18069</guid>
      <dc:creator>Phil_Brown</dc:creator>
      <dc:date>2016-08-09T11:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19825#M18070</link>
      <description>&lt;P&gt;Yes, the New Script message/function is what you want to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the graph that you want to produce is always the same graph, then all you have to do is to take the script that you are currently manually saving to the data table and to paste it into the "New Script" message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
dt &amp;lt;&amp;lt; New Script(
       "&amp;lt;Give the Script whatever name you want&amp;gt;",
       &amp;lt;paste the script here&amp;gt;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&lt;SPAN style="color: navy; font-weight: inherit; font-size: 13.3333px; font-family: Consolas; font-style: inherit;"&gt;If you are not sure on how to get the script that produces the graph, all you need to do is to right click on the red triangle located to the left of the script you saved to the data table, and then select "Edit".&amp;nbsp; You can copy from the window that displays the script.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Consolas; color: navy;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 17:59:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19825#M18070</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-26T17:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19826#M18071</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the info&lt;/P&gt;
&lt;P&gt;Here is what I am running now see below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem, I don't see the graph, and / or it dosen't seem to show up in the same location as doing it manually, Could you help here.&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 =  ("XFER_SPLIT");
&amp;lt;&amp;lt; New Script("Fit Y by X",
      Fit Group(
  Bivariate( Y( :MEDIAN BISN_RES ), X( :PDATETIME ) ),
  Oneway(
  Y( :MEDIAN BISN_RES ),
  X( :MACH ),
  Means and Std Dev( 1 ),
  Mean Error Bars( 1 ),
  Std Dev Lines( 1 ),
  X Axis Proportional( 0 ),
  Points Jittered( 1 )
  ),
  &amp;lt;&amp;lt;{Arrange in Rows( 2 )}
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 18:00:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19826#M18071</guid>
      <dc:creator>ivan_j_moore</dc:creator>
      <dc:date>2018-06-26T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19827#M18072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your first 2 lines are incorrect.&amp;nbsp; They should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt=data table("xfer_split");&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; New Script("Fit Y by X",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think these changes should create the script in the data table.&amp;nbsp; The running of the script will still require the individual to click on the red triangle next to the embedded script, and to select "Run Script"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 19:21:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19827#M18072</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-08-09T19:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19828#M18073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this info, the script is now working perfect. I believe I was going what we call JMP blind.&lt;/P&gt;&lt;P&gt;I am new to this website but I would like to add this information is simply Priceless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can now save the data table on a daily basis for others and all they have to do is click on the red triangle which produces the same graph every time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 09:56:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19828#M18073</guid>
      <dc:creator>ivan_j_moore</dc:creator>
      <dc:date>2016-08-10T09:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19829#M18074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Addition to what others have said, bear in mind that JMP Pro 12 has the capability of storing several tables, charts, graphs, etc to the Application Builder, which has the capability to automatically update each of every table, graph, charts, etc once launch assuming that these tables are scripted to a update tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 16:23:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/19829#M18074</guid>
      <dc:creator>jenkins_macedo</dc:creator>
      <dc:date>2016-08-10T16:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/217632#M43491</link>
      <description>&lt;P&gt;How do I use an instance of an object (such as Distribution or Gaph Builder) as an argument to the New Script function?&lt;/P&gt;&lt;P&gt;For example, I've attempted something similar to the example provided below, but the content of the "New Script" in the data table ends up being "dist" and not the script that dist was built from.&lt;/P&gt;&lt;P&gt;I've also tried replacing "dist" in the example below with "dist &amp;lt;&amp;lt; Get Script", but once again the actual script that is saved to the table is populated with the explicit string "dist &amp;lt;&amp;lt; Get Script", and not the script source.&lt;/P&gt;&lt;P&gt;I hope the quesiton is clear. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;dt &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Open&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"$SAMPLE_DATA/Big Class.jmp"&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;dist = Distribution&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Column&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;Height&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;Weight &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; By&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;sex &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
dt &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; New Script&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;
       &lt;SPAN class="token string"&gt;"New Script"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;
       dist
&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;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 00:04:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/217632#M43491</guid>
      <dc:creator>justinmatthews</dc:creator>
      <dc:date>2019-07-16T00:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/217670#M43497</link>
      <description>&lt;P&gt;You were on the right track:&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 = Open( "$SAMPLE_DATA/Big Class.jmp" );

dist = dt &amp;lt;&amp;lt; Distribution( Column( :Height, :Weight ), By( :sex ) );

dist expr = dist &amp;lt;&amp;lt; Get Script;

Eval(
	Substitute(
		Expr(
			dt &amp;lt;&amp;lt; New Script( "New Script",
			   sss
			);
		),
		Expr( sss ),
		Name Expr( dist expr )
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2019 11:42:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/217670#M43497</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-07-16T11:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/576958#M78459</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;,&amp;nbsp;can you help me rewrite my code below? I want to create a JSL which can do the TOST for selected column named "XXXX", and then save the Script to JMP Table. There are some problems in the code below, firstly I need to put the XXXX twice in the code below which is not efficient, and also in the future I want to replace XXXX with a list so that I can do many analysis at once. Secondly I want to replace STD3X with an actual number in the script not a variable. I tried to modify it based on&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;'s code below, but it's not working. Could you please help me? Thank you so much.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
dt &amp;lt;&amp;lt; New Script(
	"XXXX-TOST",
	ColName = "XXXX";
	STD3X = 3 * Col Std Dev( If( :"Size" == "Small", :Column( ColName ) ) );
	Oneway(
		Y( :Column( ColName ) ),
		X( :Scale ),
		Unequal Variances( 1 ),
		Std Dev Lines( 1 ),
		Equivalence Tests( STD3X, 0.05, "Pooled Variance" )
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Dec 2022 06:46:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/576958#M78459</guid>
      <dc:creator>lazzybug</dc:creator>
      <dc:date>2022-12-03T06:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/576982#M78460</link>
      <description>&lt;P&gt;Few questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Selected column named "XXXX". Is this really selected column from table or just column name which will be pre-scripted?&lt;/LI&gt;
&lt;LI&gt;Putting XXXX twice. You mean in the table script name and then as column name? When you have a list, how should the table script be named? How long list may it be?&lt;/LI&gt;
&lt;LI&gt;STD3X with an actual number in the script not a variable. I'm not sure what is meant by this? Isn't it already number which is being calculated based on your data?&lt;/LI&gt;
&lt;LI&gt;Not as important as questions above: how is the script being built/run?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This won't handle list of column names, as I'm not sure what should be done with that list&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

col_of_interest = "height";
std3x = 3 * Col Std Dev(If(:sex == "F", Column(col_of_interest)));

table_script_expr = EvalExpr(
	Oneway(
		Y(Expr(Column(col_of_interest))), X(:sex), Equivalence Tests(Expr(std3x), 0.05, "Pooled Variance");
	);
);

Eval(
	Substitute(
		Expr(dt &amp;lt;&amp;lt; New Script(Eval Insert("^col_of_interest^-TOST"), _table_script_)),
		Expr(_table_script_), Name Expr(table_script_expr);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1670056722038.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47893iD61CE836E1B4C864/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1670056722038.png" alt="jthi_0-1670056722038.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2022 08:39:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/576982#M78460</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-12-03T08:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a JSL script for saving a graph to the data table.</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/577533#M78504</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thank you so much, this is exactly what I want. You are the best!!!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 17:27:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-create-a-JSL-script-for-saving-a-graph-to-the-data/m-p/577533#M78504</guid>
      <dc:creator>lazzybug</dc:creator>
      <dc:date>2022-12-05T17:27:00Z</dc:date>
    </item>
  </channel>
</rss>

