<?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: Getting control limits from column property in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70517#M35233</link>
    <description>&lt;P&gt;Spec Limits are not nearly as complex as Control Limits are.&amp;nbsp; For Spec Limits, you basically have and LSL, Target and USL.&amp;nbsp; For Control Limits, you may have several different LCL, Avg and UCL groupings because of the different kinds of Control Limits.&amp;nbsp; See below output of the structure of Spec Limits and Control Limits for the same collumn.&lt;/P&gt;
&lt;PRE&gt;dt:npn1 &amp;lt;&amp;lt; get property("spec limits") = {LSL(104.41), USL(131.89), Target(118.15)};
dt:npn1 &amp;lt;&amp;lt; get property("control limits") = {XBar(Avg(115), LCL(110), UCL(120), Subgroup Size(3)), R(Avg(10), LCL(5), UCL(15), Subgroup Size(3))};&lt;/PRE&gt;
&lt;P&gt;Therefore, the retrieval and parsing of a Control Limit has to be completly different than for Spec Limits.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 15:17:08 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-08-29T15:17:08Z</dc:date>
    <item>
      <title>Getting control limits from column property</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70514#M35230</link>
      <description>&lt;P&gt;I found this topic earlier for pulling the spec limits from the column properties.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Get-column-Property-and-store-as-list/td-p/50885" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Get-column-Property-and-store-as-list/td-p/50885&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to do similar however with the control limits as well.&amp;nbsp; For this however the same principle doesn't work.&lt;/P&gt;&lt;P&gt;CTRL = Column(colname) &amp;lt;&amp;lt; Get Property( "Control Limits" );&lt;/P&gt;&lt;P&gt;LCL = CTRL["LCL"];&lt;/P&gt;&lt;P&gt;Returns:&amp;nbsp;Name not found. in access or evaluation of 'Subscript' , CTRL[/*###*/"LCL"]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure out why the indexing is inconsistent here.&amp;nbsp; Overall it seems JSL is very inconsistent with&amp;nbsp;accessing indexed object field information.&amp;nbsp; Is there something I'm missing?&amp;nbsp; I seem to spend half my time scripting just trying to figure out how to get access to the information embedded in objects.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:57:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70514#M35230</guid>
      <dc:creator>sbiedrzycki</dc:creator>
      <dc:date>2018-08-29T14:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting control limits from column property</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70517#M35233</link>
      <description>&lt;P&gt;Spec Limits are not nearly as complex as Control Limits are.&amp;nbsp; For Spec Limits, you basically have and LSL, Target and USL.&amp;nbsp; For Control Limits, you may have several different LCL, Avg and UCL groupings because of the different kinds of Control Limits.&amp;nbsp; See below output of the structure of Spec Limits and Control Limits for the same collumn.&lt;/P&gt;
&lt;PRE&gt;dt:npn1 &amp;lt;&amp;lt; get property("spec limits") = {LSL(104.41), USL(131.89), Target(118.15)};
dt:npn1 &amp;lt;&amp;lt; get property("control limits") = {XBar(Avg(115), LCL(110), UCL(120), Subgroup Size(3)), R(Avg(10), LCL(5), UCL(15), Subgroup Size(3))};&lt;/PRE&gt;
&lt;P&gt;Therefore, the retrieval and parsing of a Control Limit has to be completly different than for Spec Limits.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 15:17:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70517#M35233</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-29T15:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting control limits from column property</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70519#M35235</link>
      <description>&lt;P&gt;I had noticed the different grouping and tried a dozen different ways to try to pull it from the child object with no luck.&amp;nbsp; The debugger shows it getting my Individual Measurements control limits but no form of indexing I tried seemed to be able to pull the individual limit values from the object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect to be able to do something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;LCL =&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;(CTRL["Individual Measurements"])["LCL"];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LCL = CTRL("Individual Measurements")["LCL"];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or something similar as in convention programming/scripting languages but nothing seemed to work.&amp;nbsp; How am I actually supposed to get access to that data?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 15:44:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70519#M35235</guid>
      <dc:creator>sbiedrzycki</dc:creator>
      <dc:date>2018-08-29T15:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting control limits from column property</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70538#M35237</link>
      <description>&lt;P&gt;It isn't that simple....wish it was.&amp;nbsp; Here is some code that I have used......there may be better code out there....I customized it for Individual Measurements limits....but it can be expanded&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cLimits = dt:npn1 &amp;lt;&amp;lt; get property( "control limits" );

For( i = 1, i &amp;lt;= N Items( cLimits ), i++,
	If( Trim( Word( 1, Char( cLimits[i] ), "(,)" ) ) == "Individual Measurements",
		IRLimits = Char( cLimits[1] );

		k=2;
		While( Word( k, IRLimits, "()" ) != "",
			If(
				Word( k, IRLimits, "()" ) == "Avg",
					Avg = Word( k + 1, IRLimits, "()" ),
				Word( k, IRLimits, "()" ) == "LCL",
					LCL = Word( k + 1, IRLimits, "()" ),
				Word( k, IRLimits, "()" ) == "UCL",
					UCL = Word( k + 1, IRLimits, "()" )
			);
			k++;
		);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 17:40:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70538#M35237</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-29T17:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting control limits from column property</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70540#M35238</link>
      <description>&lt;P&gt;Wow, that's ugly. I'm surprised there's no direct way to pull this data... I guess it's all the more reason to push more of my code outside of JMP where possible.&amp;nbsp; I appreciate the answer though especially given the depth to which was required to accomplish the task.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 17:48:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-control-limits-from-column-property/m-p/70540#M35238</guid>
      <dc:creator>sbiedrzycki</dc:creator>
      <dc:date>2018-08-29T17:48:27Z</dc:date>
    </item>
  </channel>
</rss>

