<?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: Pass items from calculated statistics to specific coordinates in a saved data-table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/436434#M68563</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;. I think this would work. However, before trying this out on my actual problem, I have got one question. Does "Results Table" need to open before the values could be passed on to it?&lt;/P&gt;&lt;P&gt;In my case, the "Results Table" is a saved file and I was not planning to open it unless it is not possible to pass values on to it otherwise.&lt;/P&gt;&lt;P&gt;(I will need to change the rest of my code if I need to have my "Results Table" open at the instance when values are passed on to it)&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 14:15:06 GMT</pubDate>
    <dc:creator>Neo</dc:creator>
    <dc:date>2021-11-15T14:15:06Z</dc:date>
    <item>
      <title>Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/435992#M68515</link>
      <description>&lt;P&gt;I generate several charts with calculated statistics. I would like to pass on specific calculated statistical parameters e.g. the minimum, median and maximum from &lt;I&gt;Quantiles&lt;/I&gt;&amp;nbsp;and Std Dev from &lt;EM&gt;Summary Statistics&lt;/EM&gt;&amp;nbsp;to specific coordinates in a saved data-table using JSL.&lt;/P&gt;&lt;P&gt;For example I would like pass on&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;minimum Quantile to row 5, column 7&lt;/LI&gt;&lt;LI&gt;median to row 5, column 8&lt;/LI&gt;&lt;LI&gt;maximum Quantile to row 5, column 9&lt;/LI&gt;&lt;LI&gt;Std Dev to row 5 column 10.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;to my saved data-table. How to achive this using JSL?&lt;/P&gt;&lt;P&gt;(the coordinates are empty in the saved data table to start with)&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:19:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/435992#M68515</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-11T11:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/436004#M68518</link>
      <description>&lt;P&gt;I think &lt;A href="https://community.jmp.com/t5/Uncharted/Data-table-subscripting/ba-p/21013" target="_blank" rel="noopener"&gt;data table subscripting&lt;/A&gt; can help you with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt[10,3] = "AAAAAAAAAAAAAA";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Nov 2021 18:14:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/436004#M68518</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-11-12T18:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/436272#M68552</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/28235"&gt;@Neo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see if you can extract what you need from this script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// set up a table to accept the results
resultsdt = New Table( "Results Table",
	Add Rows( 20 ),
	New Column( "Column 1" ),
	New Column( "Column 2" ),
	New Column( "Column 3" ),
	New Column( "Column 4" ),
	New Column( "Column 5" ),
	New Column( "Column 6" ),
	New Column( "Min", Numeric ),
	New Column( "Median", Numeric ),
	New Column( "Max", Numeric ),
	New Column( "SD", Numeric )
);

// Open Data Table: Big Class.jmp
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


// Launch platform: Distribution
output = Report( dist = dt &amp;lt;&amp;lt; Distribution( Continuous Distribution( Column( :height ) ) ) );

// Extract min median max and SD
resultsdt[5, 7] = output[Outline Box( "height" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box( 1 )] &amp;lt;&amp;lt; get( 11 ); // min
resultsdt[5, 8] = output[Outline Box( "height" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box( 1 )] &amp;lt;&amp;lt; get( 6 ); // median
resultsdt[5, 9] = output[Outline Box( "height" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box( 1 )] &amp;lt;&amp;lt; get( 1 ); // max
resultsdt[5, 10] = output[Outline Box( "height" ), Outline Box( "Summary Statistics" ), Number Col Box( 1 )] &amp;lt;&amp;lt; get( 2 ); // Std dev.

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;when it comes to extracting numbers out of output one needs to be careful. Correct references to locations may change if the output is different because of preferences or just includes multiple outputs in one window.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let us know if it works.&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 23:17:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/436272#M68552</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-11-14T23:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/436434#M68563</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;. I think this would work. However, before trying this out on my actual problem, I have got one question. Does "Results Table" need to open before the values could be passed on to it?&lt;/P&gt;&lt;P&gt;In my case, the "Results Table" is a saved file and I was not planning to open it unless it is not possible to pass values on to it otherwise.&lt;/P&gt;&lt;P&gt;(I will need to change the rest of my code if I need to have my "Results Table" open at the instance when values are passed on to it)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 14:15:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/436434#M68563</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2021-11-15T14:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/436517#M68564</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/28235"&gt;@Neo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To the best of my knowledge there is no way in JMP to set data into a cell of a closed table.&lt;/P&gt;
&lt;P&gt;If anyone else here knows better please let us know.&lt;/P&gt;
&lt;P&gt;perhaps you can open another table as an intermediary to keep the information there while you are still collecting and only at the end open the final result table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 16:12:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/436517#M68564</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-11-15T16:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440105#M68843</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;&amp;nbsp;. Thanks. It took me some time to recode so that I can have&amp;nbsp;&lt;SPAN&gt;"Results Table" open for values from calculated statistics could be passed on to it. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have started with you suggestion and have god a question. Why does this not work?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;distb =  Distribution( Continuous Distribution( Column( :height ) ) ) ;

// Extract min median max and SD
resultsdt[5, 7] = distb[Outline Box( "height" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box( 1 )] &amp;lt;&amp;lt; get( 11 ); // min
resultsdt[5, 8] = distb[Outline Box( "height" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box( 1 )] &amp;lt;&amp;lt; get( 6 ); // median
resultsdt[5, 9] = distb[Outline Box( "height" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box( 1 )] &amp;lt;&amp;lt; get( 1 ); // max
resultsdt[5, 10] = distb[Outline Box( "height" ), Outline Box( "Summary Statistics" ), Number Col Box( 1 )] &amp;lt;&amp;lt; get( 2 ); // Std dev.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;and why does it have to be?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;output = Report( dist = dt &amp;lt;&amp;lt; Distribution( Continuous Distribution( Column( :height ) ) ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;I have got multiple distribution plots which I can easily assign a name such as distb1, distb2,... but if do I need have&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;output = Report( dist = dt &amp;lt;&amp;lt; Distribution( ..... ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;I will need to check how this affects the rest of my code.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 18:11:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440105#M68843</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2021-11-26T18:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440106#M68844</link>
      <description>&lt;P&gt;Hi Neo,&lt;/P&gt;
&lt;P&gt;your reference to distb is not working sine distb is not a report layer of anything. it is the analysis layer. In JMP there is a difference between them.&lt;/P&gt;
&lt;P&gt;in order to extract anything from the output you need to reference the report layer explicitly.&lt;/P&gt;
&lt;P&gt;see this:&amp;nbsp;&lt;LI-MESSAGE title="Extract Statistics from an Analysis into a Report" uid="41547" url="https://community.jmp.com/t5/JSL-Cookbook/Extract-Statistics-from-an-Analysis-into-a-Report/m-p/41547#U41547" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;if you have multiple outputs you will need to name and define them correctly to be sure you are getting the values you are aiming at.&lt;/P&gt;
&lt;P&gt;let us know if it works. otherwise, consider providing some files and scrips from the point that is giving you issues.&lt;/P&gt;
&lt;P&gt;all the best,&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 17:04:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440106#M68844</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-11-29T17:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440109#M68846</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;. Let me try to give an overview of what I am trying to do. My main script has the following (simplified here) flow.&lt;/P&gt;
&lt;P&gt;Open a data table (and call it&amp;nbsp;&lt;EM&gt;dt&lt;/EM&gt;), and then plot distribution plots for several columns in it using a function&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;getDistribution ("ColName", "LSL", "USL", "other input parameters")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Each resulting distribution plots have "Quantiles", "Summary Statistics" and "Capability Analysis (with outline closed)".&lt;/P&gt;
&lt;P&gt;Next part of main script is to create a table (lets call it &lt;EM&gt;resultsdt&lt;/EM&gt;) with several rows and columns where I need to pass values of calculated statistics as indicated in the original post.&lt;/P&gt;
&lt;P&gt;However, the following does not work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;output = Report( dist = dt &amp;lt;&amp;lt; getDistribution("ColName", "LSL", "USL", "other input parameters") );

resultsdt[5, 9] = Output[Outline Box( "height" ), Outline Box( "Quantiles" ), Table Box( 6 ), Number Col Box( 11)] &amp;lt;&amp;lt; get( 1 ); // max&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have made sure that the numbers in Table Box () and Number Col Box () are correct. I get the following error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Send Expects Scriptable Object{8} in access or evaluation of 'Send' , output[Outline Box( "height" ), Outline Box( "Quantiles" ),
Table Box( 6 ), Number Col Box( 11 )] &amp;lt;&amp;lt;  /*###*/get( 1 ) /*###*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where am I going wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 20:43:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440109#M68846</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2021-11-27T20:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440110#M68847</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/28235"&gt;@Neo&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;if i understand your issue correctly you need to pay attention to the numbering and addresses. once you use names of outline boxes the numbering of Table Boxs and Number Col Boxs starts from 1. &lt;/P&gt;
&lt;P&gt;Therefore, try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;resultsdt[5, 9] = Output[Outline Box( "height" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box( 1)] &amp;lt;&amp;lt; get( 1 ); // max&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if you want to use Number Col Box (11) try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;resultsdt[5, 9] = Output[Number Col Box( 11)] &amp;lt;&amp;lt; get( 1 ); // max&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;hope this now works.&lt;/P&gt;
&lt;P&gt;generally, there are much fancier ways of getting the script to find the location of the values of interest using&amp;nbsp;xpath () or pattern matching as in this link:&amp;nbsp;&lt;A href="http://www.pega-analytics.co.uk/blog/oneway-advisor-step-3/" target="_blank"&gt;http://www.pega-analytics.co.uk/blog/oneway-advisor-step-3/&lt;/A&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 22:48:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440110#M68847</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-11-26T22:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440176#M68853</link>
      <description>&lt;P&gt;Thanks again&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;&amp;nbsp;, but both these do not work and gives me the same error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you saying that the following is correct and valid usage? Note it is &lt;STRONG&gt;not plotting&lt;/STRONG&gt; the distribution if used like below (btw I do not understand the function of &lt;EM&gt;dist&lt;/EM&gt; in &lt;EM&gt;dist=dt&lt;/EM&gt;&amp;nbsp;?)&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Output = Report( dist = dt &amp;lt;&amp;lt; getDistribution("ColName", "LSL", "USL", "other input parameters") );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and the error (copied from log)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Send Expects Scriptable Object{8} in access or evaluation of 'Send' , Output[Outline Box( "height" ), Outline Box( "Quantiles" ),
Table Box( 1 ), Number Col Box( 1 )] &amp;lt;&amp;lt;  /*###*/get( 1 ) /*###*/Not subscriptable value{8} in access or evaluation of 'Assign' , resultsdt[5, 9] =  /*###*/Output[Outline Box( "Pass Distribution" ),
Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box( 1 )] &amp;lt;&amp;lt;  /*###*/get( 1 ) /*###*/
/*###*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am getting is due to my following statement (even when your suggestion below)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;resultsdt[5, 9] = Output[Outline Box( "height" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box( 1)] &amp;lt;&amp;lt; get( 1 ); // max&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If, yes, I would like to do a simple test and pass something more straightforward to resultsdt. Is there a simple test I can do to test if I can get anything at all from &lt;EM&gt;Output&lt;/EM&gt; to the data-table&amp;nbsp;&lt;EM&gt;resultsdt&lt;/EM&gt;?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 23:18:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440176#M68853</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2021-11-27T23:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440181#M68857</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;&amp;nbsp;. The following should help clear things up a bit more as it is very similar to my actual issue. I get the distribution plot via a function.&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" );

getDistChart = Function({ColName, _LSL, _USL}, {distChart},

New Window(""||ColName||" distribution",

Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column(As Column (ColName) ),
		Horizontal Layout( 1 ),
		Vertical( 0 ),
		Capability Analysis( LSL(_LSL ), USL(_USL) )
	),
	SendToReport(
		Dispatch(
			{},
			"Distrib Histogram",
			FrameBox,
			{DispatchSeg( LabelSeg( 1 ), {Font( "Segoe UI", 7, "Plain" )} ),
			DispatchSeg( LabelSeg( 2 ), {Font( "Segoe UI", 7, "Plain" )} )}
		)
	)
);
);

return(distChart);
);

dist = dt &amp;lt;&amp;lt; getDistChart ("weight", 55, 185);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To me it appears that the last line is not doing what it is supposed to do for extracting values from the distribution as no distribution gets plotting in the first place. The question now is how to get values of calculated statistics when the distribution is plotted via a function such as mine above. Perhaps a function is not&amp;nbsp; message so cannot be sent to an object using &amp;lt;&amp;lt;?&lt;/P&gt;
&lt;P&gt;Any help would be very useful as I am still learning JMP.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 23:48:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440181#M68857</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2021-11-27T23:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440182#M68858</link>
      <description>&lt;P&gt;2 issues, the local variable that is returned is never assigned anything, and the data table needs to be passed to the user function. Something like this&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" );

getDistChart = Function( {dt, ColName, _LSL, _USL},
	{distChart}, 

	New Window( "" || ColName || " distribution", 

		distChart = dt &amp;lt;&amp;lt; Distribution(
			Stack( 1 ),
			Continuous Distribution(
				Column( As Column( ColName ) ),
				Horizontal Layout( 1 ),
				Vertical( 0 ),
				Capability Analysis( LSL( _LSL ), USL( _USL ) )
			),
			SendToReport(
				Dispatch(
					{},
					"Distrib Histogram",
					FrameBox,
					{DispatchSeg( LabelSeg( 1 ), {Font( "Segoe UI", 7, "Plain" )} ),
					DispatchSeg( LabelSeg( 2 ), {Font( "Segoe UI", 7, "Plain" )} )}
				)
			)
		)
	);

	Return( distChart );
);

dist = getDistChart( dt, "weight", 55, 185 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In JMP, the &amp;lt;&amp;lt; operator is the &lt;EM&gt;send&lt;/EM&gt; operator and sends a message (on the right) to a &lt;EM&gt;scriptable object&lt;/EM&gt;, on the left. The data table (dt) is a scriptable object, but it doesn't know about a message &lt;EM&gt;getDistChart&lt;/EM&gt;. It does know about the built in platforms, like &lt;EM&gt;distribution&lt;/EM&gt;. The scripting index shows all the message names for the data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 00:16:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440182#M68858</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-11-28T00:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440313#M68878</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;. I understand the issue a bit better now. However there is still a glitch. The following works as intended&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);

delete symbols ();
clear log ();

// set up a table to accept the results
resultsdt = New Table( "Results Table",
	Add Rows( 8),
	New Column( "Column 1" ),
	New Column( "Column 2" ),
	New Column( "Column 3" ),
	New Column( "Column 4" ),
	New Column( "Column 5" ),
	New Column( "Column 6" ),
	New Column( "Min", Numeric ),
	New Column( "Median", Numeric ),
	New Column( "Max", Numeric ),
	New Column( "SD", Numeric )
);

Column(resultsdt, "Column 1")[1] = "A";
Column(resultsdt, "Column 1")[2] = "B";
Column(resultsdt, "Column 1")[3] = "C";
Column(resultsdt, "Column 1")[4] = "D";
Column(resultsdt, "Column 1")[5] = "E";
Column(resultsdt, "Column 1")[6] = "F";
Column(resultsdt, "Column 1")[7] = "G";
Column(resultsdt, "Column 1")[8] ="H";

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

getDistChart = Function({ColName, _LSL, _USL}, {distChart},

New Window(""||ColName||" distribution",

distChart = dt &amp;lt;&amp;lt; Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column(As Column (ColName) ),
		Horizontal Layout( 1 ),
		Vertical( 0 ),
		Capability Analysis( LSL(_LSL ), USL(_USL) )
	),
	SendToReport(
		Dispatch(
			{},
			"Distrib Histogram",
			FrameBox,
			{DispatchSeg( LabelSeg( 1 ), {Font( "Segoe UI", 7, "Plain" )} ),
			DispatchSeg( LabelSeg( 2 ), {Font( "Segoe UI", 7, "Plain" )} )}
		)
	)
);
);

return(distChart);
);


dist =  getDistChart ("weight", 55, 185);
toPass= Report( dist )[Outline Box("weight" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box(1)]&amp;lt;&amp;lt; get (1); 
//resultsdt = include ("basicTable.jsl");
resultsdt[1, 2] = toPass;
//show (toPass);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, if I define &lt;EM&gt;resultsdt&lt;/EM&gt; separately as below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);

// set up a table to accept the results
resultsdt = New Table( "Results Table",
	Add Rows( 8),
	New Column( "Column 1" ),
	New Column( "Column 2" ),
	New Column( "Column 3" ),
	New Column( "Column 4" ),
	New Column( "Column 5" ),
	New Column( "Column 6" ),
	New Column( "Min", Numeric ),
	New Column( "Median", Numeric ),
	New Column( "Max", Numeric ),
	New Column( "SD", Numeric )
);

Column(resultsdt, "Column 1")[1] = "A";
Column(resultsdt, "Column 1")[2] = "B";
Column(resultsdt, "Column 1")[3] = "C";
Column(resultsdt, "Column 1")[4] = "D";
Column(resultsdt, "Column 1")[5] = "E";
Column(resultsdt, "Column 1")[6] = "F";
Column(resultsdt, "Column 1")[7] = "G";
Column(resultsdt, "Column 1")[8] ="H";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then call it as below (which is how I have got my actual code set up)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);

delete symbols ();
clear log ();


dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

getDistChart = Function({ColName, _LSL, _USL}, {distChart},

New Window(""||ColName||" distribution",

distChart = dt &amp;lt;&amp;lt; Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column(As Column (ColName) ),
		Horizontal Layout( 1 ),
		Vertical( 0 ),
		Capability Analysis( LSL(_LSL ), USL(_USL) )
	),
	SendToReport(
		Dispatch(
			{},
			"Distrib Histogram",
			FrameBox,
			{DispatchSeg( LabelSeg( 1 ), {Font( "Segoe UI", 7, "Plain" )} ),
			DispatchSeg( LabelSeg( 2 ), {Font( "Segoe UI", 7, "Plain" )} )}
		)
	)
);
);

return(distChart);
);


dist =  getDistChart ("weight", 55, 185);
toPass= Report( dist )[Outline Box("weight" ), Outline Box( "Quantiles" ), Table Box( 1 ), Number Col Box(1)]&amp;lt;&amp;lt; get (1); 
resultsdt = include ("basicTable.jsl");
resultsdt[1, 2] = toPass;
//show (toPass);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Not subscriptable value{8} in access or evaluation of 'Assign' , resultsdt[1, 2] =  /*###*/toPass/*###*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where am I going wrong?&lt;/P&gt;
&lt;P&gt;(I note that if I do not define the entries in Column 1 at all,&amp;nbsp; both above approaches work fine)&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 23:26:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440313#M68878</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2021-11-28T23:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440318#M68881</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;resultsdt = include ("basicTable.jsl");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If that file is what you show, the problem is resultsdt is not a data table, but (maybe?) whatever this evaluates to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column(resultsdt, "Column 1")[8] ="H";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which might be "H". The result of the include function is the last thing evaluated. (Consistent with your note.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the error message was not as helpful as you might wish. &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1893"&gt;@Audrey_Shull&lt;/a&gt;&amp;nbsp; - it should point to the left of the =, not the right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 00:50:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440318#M68881</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-11-29T00:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440455#M68888</link>
      <description>&lt;P&gt;The statement&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column(resultsdt, "Column 1")[8] ="H";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;just passes a parameter name &lt;EM&gt;H&amp;nbsp;&lt;/EM&gt;to the 8th row of column 1. An alternate way of defining &lt;EM&gt;resultsdt&lt;/EM&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);

// set up a table to accept the results
resultsdt = New Table( "Results Table",
	Add Rows( 8),
	New Column( "Column 1" ),
	New Column( "Column 2" ),
	New Column( "Column 3" ),
	New Column( "Column 4" ),
	New Column( "Column 5" ),
	New Column( "Column 6" ),
	New Column( "Min", Numeric ),
	New Column( "Median", Numeric ),
	New Column( "Max", Numeric ),
	New Column( "SD", Numeric )
);
resultsdt:Column 1[1] ="A";
resultsdt:Column 1[2] ="B";
resultsdt:Column 1[3] ="C";
resultsdt:Column 1[4] ="D";
resultsdt:Column 1[5] ="E"; 
resultsdt:Column 1[6] ="F";
resultsdt:Column 1[7] ="G";
resultsdt:Column 1[8] ="H";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;also does not work when using&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;resultsdt = include ("basicTable.jsl");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, if I leave the column 1 empty the code runs fine. Any help to resolve this issue would be every useful.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 10:20:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440455#M68888</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2021-11-29T10:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440457#M68890</link>
      <description>&lt;P&gt;Look at your code carefully. you are assigning the returned value of the include function to resultsdt. That returned value is the last thing done by the file that is included, which evaluates to "H". it is not a data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit:&lt;/P&gt;
&lt;P&gt;either (1) add a final line to basicTable.jsl that says&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;resultsdt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or (2) change the include like this (adding comment)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/*resultsdt =*/ include ("basicTable.jsl");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think (1) seems closer to what you expect. It makes sure the last thing evaluated is the variable holding the data table, which then gets returned as the result of include().&lt;/P&gt;
&lt;P&gt;(2) will also work, maybe, depending on local behavior and using the same variable name. I think it will be a little unpredictable depending if you use namesDefaultToHere every where and whether resultsdt already exists. Not sure how that will work without testing.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 13:17:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440457#M68890</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-11-29T13:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pass items from calculated statistics to specific coordinates in a saved data-table</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440464#M68894</link>
      <description>&lt;P&gt;Thanks. This works. Coming from Matlab and C# I am still getting used to JSL way of thinking.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 13:48:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-items-from-calculated-statistics-to-specific-coordinates-in/m-p/440464#M68894</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2021-11-29T13:48:15Z</dc:date>
    </item>
  </channel>
</rss>

