<?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: Using variables i JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-variables-i-JSL/m-p/263768#M51490</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1893"&gt;@Audrey_Shull&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 May 2020 09:57:13 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2020-05-03T09:57:13Z</dc:date>
    <item>
      <title>Using variables i JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Using-variables-i-JSL/m-p/263705#M51476</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to jsl but have a hard time understanding how it deals with variables. In the example below I define an LSL and alpha-value. It seems arbitrary to me, when jmp will use the defined variables and when it won't.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It has no problem using myLSL in Process Capability&lt;/LI&gt;&lt;LI&gt;It wont use myAlpha under Tolerance Interval. Instead, it will use the default value (but does not throw an error saying e.g. that the variable is unknown). If I put in a value directly, it works, but I want to be able to define a variable that I can then reference throughout the script.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can someone help explain this to a novice jsl user? Or provide a relevant reference. Thank you!&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;myLSL = 2.1; myAlpha = 0.8;

// Distribution and Tolerance Interval
Current Data Table(dt);
Distribution(
	Continuous Distribution(
		Column("ColumnName"),
		Fit Distribution( Normal( Spec Limits( LSL( myLSL ) ) ) ),
		Process Capability( LSL( myLSL ), Target( . ), USL( . ) ),
		Tolerance Interval(
			Alpha( myAlpha ),
			Proportion( 0.90 ),
			Lower,
			Parametric Normal
		)
	),
);&lt;/CODE&gt;&lt;/PRE&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>Sat, 02 May 2020 11:04:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-variables-i-JSL/m-p/263705#M51476</guid>
      <dc:creator>Hauskov</dc:creator>
      <dc:date>2020-05-02T11:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables i JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Using-variables-i-JSL/m-p/263715#M51481</link>
      <description>&lt;P&gt;There remains inconsistencies in whether arguments can be variables or they must be literals. The Alpha() argument takes a literal argument. So you must substitute the value in the variable into the expression to make it literal.&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 );

// example data set
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

myLSL = 50; myAlpha = 0.8;

// Distribution and Tolerance Interval
dist = dt &amp;lt;&amp;lt; Distribution(
	Continuous Distribution(
		Column( :height ),
		Fit Normal( Process Capability( LSL( myLSL ), Target( . ), USL( . ) ) )
	)
);

Eval(
	Substitute(
		Expr(
			dist &amp;lt;&amp;lt; Tolerance Interval(
				Alpha( aaa ),
				Proportion( 0.9 ),
				Lower,
				Parametric Normal
			)		),
		Expr( aaa ), myAlpha
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 May 2020 11:50:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-variables-i-JSL/m-p/263715#M51481</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-05-02T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables i JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Using-variables-i-JSL/m-p/263768#M51490</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1893"&gt;@Audrey_Shull&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 09:57:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-variables-i-JSL/m-p/263768#M51490</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-05-03T09:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables i JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Using-variables-i-JSL/m-p/375158#M62489</link>
      <description>&lt;P&gt;Thank you for reporting this issue. JMP still has some inconsistencies regarding evaluation of JSL variables. However I can confirm that, in our next available release of JMP 16.1, the tolerance interval for Process capability will evaluate a variable for the alpha argument.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 15:08:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-variables-i-JSL/m-p/375158#M62489</guid>
      <dc:creator>Audrey_Shull</dc:creator>
      <dc:date>2021-04-08T15:08:07Z</dc:date>
    </item>
  </channel>
</rss>

